Question

Write a  for loop that prints in ascending order all the positive multiples of 5 that are...

Write a  for loop that prints in ascending order all the positive multiples of 5 that are less than 175, separated by spaces.

PLEASE ANSWER IN C

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given below is the code for the question.

Please do rate the answer if it helped. Thank you.

#include <stdio.h>
int main(){
int i;
for(i = 5; i < 175; i+=5)
printf("%d ", i);
return 0;
}

output
----
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 130 135 140 145 150 155 160 165 170

Add a comment
Know the answer?
Add Answer to:
Write a  for loop that prints in ascending order all the positive multiples of 5 that are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT