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

how many ways can 8 members of a family be seated side-by side in a movie theater if the father is seated on the aisle?
The Least Common Multiple of two numbers is 60, and one of the numbers is 7 less than the other number. What are the numbers? Justify your answer.
The sum of two numbers is 56. the first number is 2/5 of the second number. Let x represent the first number and y represent the second number. choose the corre
how do I draw a bar diagram to represent 6 times more than $4
a tiger can eat food that weighs up to about 15% of it's body weight if a tiger can eat 75 lbs of food how much does a tiger weigh
What is the greatest common factor of 200 and 140
Describe three skills people use to.conduct scientific investigations??? Whats that
Use skid in a sentence
is a rock a producer?
What countries Border Greece on the north?