65 591
Assignments Done
99,2%
Successfully Done
In October 2018

Answer to Question #20273 in C++ for sidra ahsaan

Question #20273
between any two integers ,find all the numbers divisible by 5 and 10.
Expert's answer
#include <iostream>
using namespace std;
void main()
{
intlow, high;
cout<< "Enter low range: ";
cin>> low;
cout<< "Enter high range: ";
cin>> high;

cout<< "
Divisible by 5:";
for(int i = low; i <= high; i++)
{
if(i % 5 == 0)
{
cout<< " " << i;
}
}

cout<< "
Divisible by 10:";
for(int i = low; i <= high; i++)
{
if(i % 10 == 0)
{
cout<< " " << i;
}
}
cout<< endl;
}

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions