#include<stdio.h>
#include<conio.h>
void main()
{
int i,sum = 0;
clrscr();
for(i = 100;i <= 200 ; i++)
{
if (i % 7 == 0)
sum = sum + i;
}
printf("Sum of all no between 100 and 200 ");
printf("which is divisible by 7 is :: %d",sum);
getch();
}
Tuesday, February 10, 2015
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment