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

Which acronym describes technology in which all or most of a deviceâs electronic circuitry is on a single microchip?
How have technological innovations increased risks in business organizations?
The sum of twice a number and 6 is the same as 3 subtracted from the number itself
Witch of the following is an example of a health promoting behavior
4xsquared - 9=0? could anyone help me solve this quadratic equation by FACTORING?
Mary buys 8 widgets for $40.00. She adds $1.00 in enhancements to each widget and sells them for $9.00 each. What is Mary's estimated gross profit margin?
8.375 simplified fraction
what is a total ionic equation ?!
A low-melting crystalline compound that does not conduct electricity in the solid or liquid state is classified as a ________ solid.
Into how many processes is metabolism divided