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

Marvin says that all rhombuses are squares also says that all squares are rhombuses who is correct
What Was The Pax Romana?
how many km are equal to 3,400 m
How can I balance this equation? ____ KClO3 ---> ____ KCl + ____ O2
what is the quotient of 9/4 and 5/8
Which is an example of a population? A. each individual in a herd of bison B. one of the trees in a forest C. all the gray squirrels that live in a forest
These powerful political leaders chose delegates and controlled conventions?
WHAT IS 5572 ROUNDED TO THE NEAREST THOUSAND
Polar Bears are more an more affected by mercury pollution. How is this happening?
Which organization is an example of the second Great Awakening's influence on society?