Computer Based Quiz Complete this with 1 other person from your section Create a
ID: 3669350 • Letter: C
Question
Explanation / Answer
cont=1;
while cont==1
i = input('loop starting value');
j = input('loop increment value');
k = input('loop stop value');
if (k<i && k<1 || i< 1 || j < 1)
cont=1;
else
cont=0;
endif
endwhile
count =0;
for x=i:j:k
count=count+1;
end
outputString = sprintf('Based on given value the loop repeated %d times',count);
disp(outputString);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.