Computer Science, asked by diyasumansingh7642, 3 months ago

WAP to calculate the sum of even numbers divisible by 5 in a range of 10 to 100.​

Answers

Answered by aniiketsharma921
0

Answer:

program is given below.

Explanation:

#include<stdio.h>

#include<conio.h>

int main()

{

int sum=0,start=10,end=100;

while(start<=end)

{

if(start%2==0 &&  start%5==0)

{ sum=sum+start;

}

start++;

}

return 0;

}

Similar questions