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 variables may effect the amount of energy needed by a living organism
in what decade did Mississippi's population increase most rapidly? A. 1820's B.1830's C.1840's D.1850's
Molar heat of condensation/vaporization of energy definition chemistry
paul purchased 8 computers which cost him a total of $6,016 and Mary Purchased 8 printers which cost her $1,080 Steve purchased 25 DVD movies which cost $350 a
Which time frame would be most appropriate for administering sliding-scale lispro insulin?
For every third response correct, scott received reinforcement. what schedule of reinforcement was scott on?
How did space exploration affect the cold war during the 70s?
Which of these would Australia be MOST likely to export? A) automobiles Reactivate B) corn C) doctors Reactivate D) gold
What is the m and the b
20 points!! help plz!! How do changes in technology and economics affect your life and future? Can we look to the past to predict the present and/or the future