Forwhile Loop Usinger prints out 6 rows but you mut prompt f

For/while Loop: Usinger prints out 6 rows, but you mut prompt for\'numRows (the number of rows to print). 5. For/While Loop: Using either a for-loop or while-loop, print out a pyramid of stars. My example

Solution

n = input(\'Enter the height of the pyramid:\');
for i = 1:n
for j=1:i
fprintf(\'*\');
end
disp(\'\');
end

 For/while Loop: Usinger prints out 6 rows, but you mut prompt for\'numRows (the number of rows to print). 5. For/While Loop: Using either a for-loop or while-l

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site