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

the use of space bar​
Qué otros conflictos en el mundo han escuchado en los medios de comunicación
Please help with this question
The little girl's Easter dress had a very _________ pattern and design.
How can a loving mother treasure the sorrow for child?​
Please help me on this question
What could have caused the size of the moon jelly population to increase? Claim 1: A change to the zoo plankton population caused births to increase in the moo
What kind of neurons are sending messages from the brains to legs ordering them to dance ?
the cosine rule calculate tha angle of r 7.2 3,7 5.2
Label each part of the car. Include the appropriate definite article.