To Do:

15 + 30 + …. + 90

Program:

#include<stdio.h>
#include<conio.h>
void main()
{
int i = 2;
int sum = 0;
clrscr();
while(i <= 99)
{
if ((i%3 == 0) && (i%5 == 0))
{
printf(“%d\n”, i);
sum = sum + i;
}
i++;
}
printf(“The sum is %d”, sum);
getch();
}