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

The answer to the question
¿Te caíste? Sí, me caí. Sí, me cae. Sí, me cayó. Sí, me cayé.
Question 4 Unsaved Inside the nucleus are chromosomes carrying your DNA. This has the genetic information for everything in your body. What part of a mall is l
Which sentence best describes a croque-monsieur? A. C’est une soupe française. B. C’est un dessert français. C. C’est un sandwich français D. C’est une bois
I need help bad I don't get it
some economists will talk about the resource time. under what category of resource (land, labor, capital, or entrepreneurship) would you most likely place time?
Which system drecribes the action of natural selection
A political map of your state would show
Improving muscular strength and endurance slows bone density loss. Tf
Robert jogged 1 2/5 km.his brother jogged 2 1/2 km.Who jogged the longer distance ?how much longer?