Answer to Question #322454 in Algorithms for KeKo

Question #322454


Write a program that prints integers that are multiples of 5 in the range of 5 to 50. Name the program as follows: multiples_while.cpp. while loop program


1
Expert's answer
2022-04-02T09:59:51-0400




#include<iostream>
using namespace std;
int main()
{
	int i=5;
	while(i<=50){
		if(i%5==0){
			cout<<i<<"\n";
		}
		i++;
	}
	cin>>i;


	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS