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

24x-12x^2=0 What is the result of this(please step by step)
Write the percent as a fraction or mixed number in simplest form. 12%
What is the volume, in liters, of 2.8 moles of NO2 gas at STP?
what are the advantages of family planning on an individual family
Write an expression that continues to bid until the user enters 'n'.
Embryonic cells especially active in assuring nutritional exchange between a pregnant woman and her embryo are found in the _____.
List five pros of conventional energy
Illnesses can often lead to fever and dehydration.How might these symptoms affect a persons cardiovascular system?
help plz 24 pointsplz help
Make a connection of pulley to the real world. Thank You.