elithunders
elithunders elithunders
  • 18-01-2020
  • Computers and Technology
contestada

write a c program to print the sum of cubes of odd numbers between 1 to 100​

Respuesta :

tonb
tonb tonb
  • 19-01-2020

Answer:

   int sum = 0;

   for (int i = 1; i < 100; i += 2) {

       sum += i * i;

   }

   printf("The sum of cubes is %d", sum);

   /* Prints: The sum of cubes is 166650 */

Explanation:

If 1 should be excluded, let the for loop start at 3.

Answer Link

Otras preguntas

¿Dónde _________ mis guantes?
What information should your organizational system document?
The volcanic landforms at divergent ocean plate boundaries are
What types of statements are made by your teacher to indicate what you should include in your notes?
Which of the following BEST explains how theme and conflict are related? a. An internal conflict makes for a moral theme. b. The way a conflict is resolved ca
What do the “nodes” in a cladogram represent?
A cell phone company charges a monthly fee plus $0.25 for each text message. The monthly fee is $30.00 and you owe $59.50. How many text messages did you have
what is 10 pie × 3 9 cow to the power of 10 10ths
Find the number if 1/9 of the number is 7
The causes of downfall of economic during 1929 in usa