if AND elase statements

How to write this code in MATLAB
Write a program that prints each number from 1 to 20 on a new line.
For each multiple of 3, print "Fizz" instead of the number. For each
multiple of 5, print "Buzz" instead of the number.

Answers (0)

This question is closed.

Asked:

on 21 Aug 2020

Closed:

on 21 Aug 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!