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 cell function do electrolytes control through the maintenance of acid-base balance? a. photosynthesis B. osmosis C. digestion D. Absorption
a. 2x + 3+ - 10 = 8x +
3. A restaurant has 26 tables in its dining room. It takes the waitstaff 10 minutes to clear and set 4 tables. At this rate, how long will it take the waitstaff
most maps have a key and a scale bar in order to
6. Suppose you are going to measure the length of a pencil in centimeters. What should you do to get the most accurate measurement? If you give the ruler to thr
Plz help Which hotspot shows a highlight on this sculpture by Jeff Koons?
A circle is divided up into 24 equal pieces. What percentage of the total circle area will each piece be? Round to the nearest percent.
B. if you have Raymond vacuum a house for 3 hours, how many houses worth of dish/laundry would you forgo? This is your opportunity cost of vacuuming in terms of
Type the integer that makes the following subtraction sentence true: -57 - ? = -151
por que valen para pura verga ?