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

PLEASE HELP WITH MY MOST RECENT QUESTION PLEASEE ASAP ITS ON MY ACCOUNT
what launage do u think i should learn
I NEED 100% ACCURATE RIGHT ANSWERS FOR THESE QUESTIONS NO LINKS !!!
Describe how bacteria are used to produce enzymes for washing powders.
expand the brackets (x+5)(3x-2).
16. John's daily income is $120. His daily income is 20% more than Michael's daily income. What is Michael's daily income? Plz send step by step explanation Wi
Who lead the Chinese in the construction of the great wall of China​
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23 25, 27,29 if we add 3 numbers From this we get the answer 30​
Directions: Read this short story below then answer the two questions at the bottom. ( I will take a picture of the story bc it won’t let me type it here) 1.
Suppose you did the lab and someone came and said your unknown acid sample was actually HCl instead of H2SO4. Everything else remains the same; the standard aci