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

any one know how to find the roots of an equation?
Which of the following is an important goal of European unification? a. restricting immigration from outside Europe b. eliminating different languages and cultu
can someone just tell me how do the work and the answer? okii ? okii.
Communism allows for significantly more individual freedom than its rival economic system, capitalism. a. True b. False
If a tree in a story stands for the cycle of life, the tree is a a. character. b. function. c. symbol. d. perspective.
Can you make 2/10 in simplest form
what is the answer of 478 divided by 30 written with a remainder
What was the immedicate effect of President Lincoln issuing the Emancipation Proclamation
People need to have _____ in the economy to spend money. purchasing power confidence less disposable income
How do you say store in spanish