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

What happens to the movement of molecules when their temperature is lowered? A. The particles move slower B. The particles move faster C. The particles get smal
After a Hacker has selects her target, performed reconnaissance on the potential target's network, and probed active Internet Addresses and hosts, what does she
WHATS NUMBER 14 ???THIS IS GEOMETRY BTW
Find the Circumference of this Circle Use 3.14 to approximate Pi.
Choose the system of equations that matches the following graph: A. 3x + 4y = 24 3x + y = −3B. 3x + 4y = 24 3x − y = 3C. 3x − 4y = −24 3x + y = −3D. 3x − 4y = −
To discuss a topic in terms of its underlying causes, a speaker should use which pattern of arrangement?.
What is 45+72/6*4+3+17+99-45/8?
Photosynthesis ____. Cannot occur without chlorplasts Is an example of homeostasis Is only possible in plants All of the above
what is the capitol of spain? Need to know
What is the difference between the points (-5,-4) and (3,-3) on a coordinate plane