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

672,831 rounded to the nearest hundred thousand
we welcomed the____ into his house. a. begger b.panhandler
In a list of numbers, the pattern increases by 0.001 as you move to the right. If the third number in the list is 0.064, what is the first number in the list? E
11/15 3/5 2/3 19/30 least to greatest
What is 0.0000000734 estimated as the product of a single digit and a power of 10?
V/W=9+Z, solve for W
How do you get the answer to 10+12y=2y+40
During exercise, stored chemical energy is converted to energy that can be used for muscle movement bone development ligament repair blood vessel dilation
Question 1 Action: Adding different amounts of fertilizer to four different aquariums. a. Variable is Independent b. Variable is Dependent.
How can geography help people to understand globalization?