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

Pennies used to be made of copper and zinc and had a mass of of 3.1 g. Today pennies are made of copper-platted zinc and have a mass of 2.5 g. A new penny's mas
PLEASE HELP ME WITH THIS WORKSHEET!!! (20pts) I’M MARKING FOR BRAINLIEST ANSWER!!!!
Find the sum or difference 5/6 + 4/9 a. 1 6/18 b. 9/18 c. 1 1/2 d. 1/2 could someone also help me with this?
Why did the United States not complaining about the construction of the Berlin wall in 1961
Which property justifies this statement? If x=3, then x−3=0
Is 21/25 equal to 85/100
which is greater? -(-3) or -(3) ? need asap!
negative ten is no less than two times a number plus fourteen
Did Jewish people believe that Jesus Christ was the son of God?
Please help i will mark brainly.!!