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

10. Most of Greenland is covered by fresh water that is
What is the fraction 0/-2 as a whole number?
In addition to its main function, the digestive system also ______.
Y=–3x 6y=9what is the solution to the system of equations?
Which will cause an increase in the reaction rate between molecules? A. Molecules have strong internal bonding. B. Molecules collide more frequently. C. Electro
Using figuarative language is only way a writer ___or states indirectly
By 1930, more than _________ cars were on the road. 2.5 million 25 million 25 billion 50 million
The purpose of a main idea is to
Answer question 2 thx :)
PLEASE PLEASE PLEASE HELP ME SOMEBODY PLEASE!! LAST QUESTION!! PLEASE?? A group of students were surveyed to find out if they like building snowmen or skiing as