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

Which best explains how storms and hurricanes contributed to the end of the land boom?
Describe the ways that Brutus’ use of logos and Mark Antony’s use of pathos in their speeches reveal their character traits.
What is the ratio 60/135 written in word form and in lowest terms? A. 6 to 17 B. 15 to 32 C. 4 to 9 D. 10 to 13
the ___ nerve connects to the heart and adjusts it's speed according to the body's demands.
Mass is measured against a standard by using a balance. a. True b. False
What is the difference of the polynomials? (5x3 + 4x2) – (6x2 – 2x – 9) A. –x3 + 6x2 + 9 B. –x3 + 2x2 – 9 C. 5x3 – 2x2 – 2x – 9 D. 5x3 – 2x2 + 2x + 9
6r + r = 7 what is the answer
Each of the following is a contribution of the Shang Dynasty except (4 points) A.a calendar based on the sun and moon. B.a picture­based writing system. C.decor
Original equation: y = 2x + 7 Which equation will shift the graph of the original equation 2 units up? A) y = 2x + 9 B) y = 4x + 7 C) y = 2x + 2 D) y = 2x - 2
The suffix "-ible" means A. "full of." B. "capable of." C. "an amount or degree." <-- ?? D. "a state of."