jituTechnology

jituTechnology

Write a program to find the number of sum of all integer greater than 100 and less than 200 that are divisible by 7.

Here is the c source code/program for: Write a program to find the number of sum of all integer greater than 100 and less than 200 that are divisible by 7.

/* a program to find the sum of all integer greater than 100 and less than 200 that are divisble by 7
programmed by:
Name: Jitendra Kumar Yadav
Roll: 16
Date: 12 feb 2011 */
#include <stdio.h>
#include <conio.h>
void main()
{
     int sum=0;
   int i;
   for(i=100; i<=200; i++)
   {
     if(i%7==0)
      {
           sum=sum+i;
      }
   }
   printf(“The sum is %d”,sum);
   getch();
}

No comments yet.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2026
S M T W T F S
 1234
567891011
12131415161718
19202122232425
2627282930