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 details from the may 15th entry prove that Charlie's intelligence is growing and increasing daily ?
in 5.074 the digit 5 stands for _____________
your body consists of 7/10 water. is more than 1/2 your body water. explain
Brand A scooter has a top speed that goes 2 miles per hour faster than Brand B. if after hours, Brand A scooter traveled 24 miles, at what rate did Brand B scoo
What is the answer to 2c-5=c+4
A water molecule gains enough energy to enter the gas phase is chemical or physical?why?
125 thousandths = 1 tenth _______________ thousandths
how hot does it have to be to melt rock
I am trying to get the intersection of 8-16-24-32 and16-32-48
what is 30% of $650.00