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

What is the equation of a parabola with vertex (0,0) and focus (0,4)? Draw its graph on the grid
do you think acid rain also affect crops.
A 170 g hockey puck sliding at 25 m/s slows to a speed of 10 m/s in a distance of 7.5 m.  Determine the force of friction causing the puck to slow.
what is the sum of the first 30 odd numbers? How to calculate it without having to add all of them.
What is the slope of the line that passes through the pair of points? (1, 7), (10, 1)
how did manifest destiny affect both the settlement and the ultimate annexation of texas and oregon?
A triangle has two sides of lengths 7 and 12 what value could the third side be?
1. Sometimes in very cold places water pipes burst. Give reason why.
Use the explicit formula an=a1+(n-1)d to find the 500th term of the sequence below. 24,31,38,45,52,..
Find the domain and range of this function f(x)=1/squareroot of (x-4)