danii900 danii900
  • 14-01-2021
  • Computers and Technology
contestada

Write a c program using loops to generate following output.

12 x 2 = 24
11 x 2 = 22
10 x 2 = 20
9 x 2 = 18
8 x 2 = 16
7 x 2 = 14
6 x 2 = 12
5 x 2 = 10
4 x 2 = 8
3 x 2 = 6
2 x 2 = 4
1 x 2 = 2

Respuesta :

tonb
tonb tonb
  • 14-01-2021

Answer:

#include <stdio.h>

int main()

{

for (int n = 12; n > 0; n--) {

 printf("%d x 2 = %d\n", n, n * 2);

}

}

Explanation:

Only one loop.

Answer Link

Otras preguntas

Why is the information available to archaeologists about early native american cultures very limited?
What is the value of the 2s in 2,200
How long before Columbus first came to what he called the New World had people lived in North and South America? No one lived in the Americas before Columbus ar
$2.95 notebooks; 5% tax
Which philosopher called all people the sovereign meaning all power should rest with them?
Fascist Party leader who became dictator of Italy
a skydiver is falling 176 feet per second. how many feet per minute is he falling?
The city of Philadelphia was founded a part of the colony
Which place valued writing, art, and fine workmanship? a. Egypt b. Mesopotamia c. Both d. Neither
which of the following federal law enforcement agencies is not operate on the Department of the Treasury