faithchebet901 faithchebet901
  • 21-07-2021
  • Computers and Technology
contestada

Develop a c program to display the following input output interphase enter a number 5
The table of 5 is
5*1=5
5*2=10

Respuesta :

tonb
tonb tonb
  • 21-07-2021

Answer:

int main()

{

int number;

printf("Enter a number: ");

scanf_s("%d", &number, sizeof(number));

for (int i = 1; i <= 2; i++) {

 printf("%d*%d=%d\n", number, i, number * i);

}

}

Explanation:

I used the safe scanf_s() that takes a third parameter to indicate the size of the buffer. In this case it is the size of an integer.

Answer Link

Otras preguntas

what does this proverb meanbetter to be a free bird than a captive king
How to change 0.393 into a fraction
what part of speech is the word "axis"?
What is the midpoint of 0.01 and 0.02
If marching bands vary from 21 to 49 player, which numbers of players can be arranged in the greatest number of rectangles?
Together tom and max have 72 football cards.  Tom has two more than four times as many cards as max has.  How many cards does Tom have?
The ratio of red tulips to all tulips in Briana's garden is 1 to 3. Is it reasonable to think that the total number of tulips in the garden is 40?explain.
Okay so what is a-9.45=-10.6?
1) In the national park, the ratio of black bears to grizzly bears is 3:1. A)If there were 24 black bears, how many grizzly bears would there be? B)If the park
I need help solving this equation 26=8 + v