#include <stdio.h>
#include <conio.h>
main()
{
int i,sum=0;
clrscr();
for(i=100;i<200;i++)
{
if(i%7==0)
sum=sum+i;
}
printf("\n\nSum of these numbers is: %d",sum);
getch();
}
#include <conio.h>
main()
{
int i,sum=0;
clrscr();
for(i=100;i<200;i++)
{
if(i%7==0)
sum=sum+i;
}
printf("\n\nSum of these numbers is: %d",sum);
getch();
}
No comments:
Post a Comment