Q:

Prompt the user for an integer n and print “I love this stuff!” n times

0

Prompt the user for an integer n and print “I love this stuff!” n times. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Ch5Ex3.m

% Prompts the user for an integer n and prints 

% "I love this stuff" n times

n = input('Enter an integer: ');

for i = 1:n

 disp('I love this stuff!')

end

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now