Computer Science, asked by murmu3901, 2 months ago

write a program to find sum of even number between 12to38?​

Answers

Answered by satakshighosh777
0

#include <stdio.h>

int main()

{

int i, sum=0;

printf("Enter upper limit: ");

scanf("%d", &n);

for(i=12; i<=38; i+=2)

{

sum += i;

}

printf("Sum of all even number between 1 to %d = %d", n, sum);

return 0;

} q

Similar questions