A.     Write a while loop that outputs the numbers from 1 to 25 on one line.

B.     Write a while loop that outputs the multiples of 7 that are less than or equal to 125.

C.     Write a while loop that sums up the numbers in the range 234 – 19348   Output the result.

D.     Write a for loop to accomplish each of the above 3 tasks.

I did a,b, and c

how do i do D.?????



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *