Write a C program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7
#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();
}