olwengechris olwengechris
  • 25-05-2022
  • Computers and Technology
contestada

write a c program to display even numbers from 10 to 20 in descending order​

Respuesta :

rvkacademic
rvkacademic rvkacademic
  • 30-05-2022

Answer:

#include <stdio.h>

int main(){

   for (int i = 10; i < 21; i+=2){

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

   }

   return 0;

}

Explanation:

i+=2 increments i by 2 starting with 10 so it prints out only even number

s

i < 21 because we also want to print out 20

Answer Link

Otras preguntas

Solve for x: 5|2x − 2| + 8 = 18. x = 2, x = −2 x = −2, x = 0 x = 2, x = 0 x = 0, x = 1 over 2
at the car wash fundraiser jenna's team washed 14 cars in 45 minutes. if they keep up at that rate, how many cars can the team wash in 2.5 hours? how did you g
What is the difference between the atmosphere and biosphere
properties of a longitudinal wave
What is the Octet rule in chemistry? Please be specific and explain thoroughly.
? hay una glorieta en una comunidad que tu conoces?
What helped spread religion during the 1950s?
How do you say ' She is a grade 9 student at xxx school. She was born on xx/xx/xx and is currently 15 years old." Also, how do you say ' Her talents include sp
What did Britain do to stop the spread of industrial technology?
Select the appropriate past participle to complete the sentence. _____ from years of exposure to the elements, the bike would need more than air in the tires to