Popular Posts

8. Write a program to find the numbers between 100 and 200 which are divisible by 5.

8. Write a program to find the numbers between 100 and 200 which are divisible by 5.

#include
#include
int main()
{
clrscr();
int i;
for(i=100;i<=200;i++)
if(i%5==0)
cout< getch();
return 0;
}


Output:
100 105 110 115 120 125 130 135 140 145 150 155 160 165 170 175 180 185 190 195 200

No comments: