answersLogoWhite

0


Best Answer

main()

{

int i,sumo=0,sume=0,oddno,evenno;

for(i=1,oddno=1,evenno=2;i<=100;++i,oddno=oddno+2,evenno=evenno+2)

{

sumo=sumo + oddno;

sume=sume + evenno;

}

printf("Sum of odd nos = %d And Sum of even nos = %d,sumo,sume);

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

#include<stdio.h>int main () {

int sum = 0;

for (int odd=3; odd<100; odd+=2) {

printf ("%d\n", odd);

sum += odd;

}

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

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int i,sum=0;

for(i=2;i<=100;i=i+2)

{

sum=sum+i;

}

printf("sum of even no.%d",sum);

getch();

}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

long sum = 0;

long i;

for (i=12; i<1000; i+=2) sum += i*i;

/* using long in case your compiler assumes 16 bit ints */

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to determine sum of squares of all even numbers between 10 to 1000?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What whole numbers have squares between 10 and 65?

There are an infinite amount of numbers that that have squares between 10 and 65


How do you determine if a number has 3 factors?

Squares of prime numbers have three factors.


Write a C Program to print sum of squares of odd numbers?

#include


Difference between the sum of the squares and the square of the sums of n numbers?

Difference between the sum of the squares and the square of the sums of n numbers?Read more:Difference_between_the_sum_of_the_squares_and_the_square_of_the_sums_of_n_numbers


How many prime numbers have squares between 100 and 300?

There are two prime numbers with squares between 100 and 300. These prime numbers are 11 and 13. (112 = 121 and 132 = 169.)


How many numbers between 2 and 20 are perfect squares?

Three numbers.


How many numbers between 30 and 50 are perfect squares?

Two. 36, and 49 are perfect squares.


What is the relationship between composite numbers and rectangular numbers?

Rectangular numbers are a subset of composite numbers. The squares of prime numbers will be composite but not rectangular.


What is a productogon?

it is a triangle with circles at the corners, and squares in the middle of the corners. The squares have numbers in them, and you have to put numbers in the circles. However, the numbers in the circles have to add up to the number of the square between them. Simple, right?


How many whole numbers lie between the squares of 40 and 41?

39


Name five numbers that are perfect squares between 1 and 50?

1,4,9,16,25,36,49


What is the sum of the squares of all Odd numbers between 100 and 200?

1166650