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

A photographer’s camera sits on a tripod that is 1.8 m above the ground. The base of the tripod is 44 m from the base of a tree. The photographer spots a woodp
suppose someone's pores were blocked and sweat could not escape. what would happen
Is nigel farage left handed?
the running back for the Bulldogs football team carried the ball 9 times for a total loss of 15 3/4 yards. Find the average change in field position on each run
A collection of dimes and nickels is worth $6.90. There are 96 coins in all. How many of each coin are there?
what is a wave that bounces back from a barrier called?
Which statement is not a reason archetypes are important to understand? A.Archetypes vary from culture to culture and must be memorized. B.Writers use them to c
Can you name an example of cooperation between US and Canada in a work towards conserving some natural landscape (such as a natural park)?
suppose someone's pores were blocked and sweat could not escape. what would happen
T is between points D and S. DT = 27 and TS = 35. What is DS? DS = _________ please help ASAP