Computer Science, asked by virushp5432, 1 year ago

Write a program to find the sum of all integers grater then 100 & less then 200 and are divisible by 5 in c language

Answers

Answered by gurukulamdivya
0

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

  int i, sum=0;

  clrscr();

  printf("All nos. between 100 - 200 which is divisible by 5\n");

  for(i=101;i<200;i++)

  {

    if(i%5==0)

    {

      printf("%5d",i);

      sum+=i;

    }

  }

  printf("\n\nsum = %d",sum);

  getch();

}

Similar questions