njokibernice4
njokibernice4 njokibernice4
  • 22-08-2020
  • Computers and Technology
contestada

Write a single c statement to read an integer from the keyboard and assign it variable "num"

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 30-08-2020

Answer:

The statement in c is as follows

scanf("%d", &num);

Explanation:

In c, the keyword scanf is used to accept input

%d refers to format specifier and it is used when the declared variable is integer;

Note: I'll assume that the variable "num" has already been declared as integer

So, the required statement is :

scanf("%d", &num);

Answer Link

Otras preguntas

how 10º 30'-10⁰ = 30'(0.5⁰)
Find how many terms of the arithmet progression 3, 6, 9, .... must be added get the sum 165.​
distingush the d/ce b/n price ceiling and price flour​
- What line should you draw on the graph of y = x² + 8x − 3 to solve the equation x² + 10x - 12 = 0 graphically? Give your answer in the form y = mx + c.
50 points From the point P(– 2, 4), if PQ is drawn perpendicular to the line 7x – 24 y + 10=0 find the equation of the linePQ. Also, determine the length of PQ.
A man was killed and a woman was injured in a "targeted" shooting at a Florida mall in the afternoon
expplain what and had human learn from nature​
The cost of a set of books is twice the cost of biros. The cost of a set of biros is three times the cost of a set of pencils. Find the cost of a set of biros i
f a system of linear equations with two linear equation has infinitely many solutions, then its linear equations are _______.
Write the various modes of transportation of oxygen in the blood