write a program to find sum of even number between 12to38?
Answers
Answered by
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