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

You compress 0.5 moles of a gas at constant pressure from 4 liters to 1 liter while 2625 J of heat is removed, the temperature drops by 180.4 K, and Eth drops b
1. 4x+ 6 =103. 2 + a =8help me I need the answer and how did you get it​
Write a SELECT statement that returns these column names and data from the Products table: product_name The product_name column list_price The list_price column
Where would you place the tic mark for the fraction 3/3 explain
two angels are supplementary and their measures are 2x and 52. what is the value of x?
Write the sum as a mixed number with the fractional part less than one 1 1/6 +3 3/6
f(x)= 2x +1 g(x) - 1 - 3
On packages of enriched rice sold in supermarkets, the rice preparation directions state that the rice should not be washed before cooking. Explain.
I need the answer someone help
During meiosis, a defect occurs in a cell that results in the failure of microtubules, spindle fibers, to bind at the kinetochores, a protein structure on chro