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

Mrs Jones' taxable income is $18400. Shepays tax at a rate of 20%. The amount ofincome tax she pays is​
Write the equation of the circle with center (-4,3) and radius 2. Please provide breakdown of problem
Which of the following statements are true regarding functions? Check all that apply. A. The horizontal line test may be used to determine whether a function is
Within 11 years, the age of Peter will be half the square of the age he was 13 years ago. Calculate the current age of Peter. Reject the extraneous solution.
Help if u know please
Did Kennedy want the US Navy to destroy Soviet Subs?
Layla was able to map circle MMM onto circle NNN using a translation and a dilation. Layla concluded: "I was able to map circle MMM onto circle NNN using a seq
Find the number if 6% of it is 27
A sales man earns 6% commission on all the merchandise that he sells last month he sold $7000 worth of merchandise how much commission and daughters did he earn
Twenty years ago a small town in Texas had a population of 10,000. The population has increased 8% each year since then. What equation would be used to solve th