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

Pluto's mass was poorly known before 1978. what happened in that year to change this
Complete the inequality statement. 0.83 ___ 8.3%
What Enlightenment trend shows the era’s increased emphasis on knowledge and education? Encyclopedias were banned across Europe. A number of scientific insti
an isosceles triangle, one of the angles is 69 degrees greater than each of the other two equal angles. find measure of all three angles
how is the planning step done in the education process
Which point of view reports the thoughts and actions of one character at a time and uses the pronouns “he,” “she,” and “they”? a. third-person omniscientB. seco
The oldest rocks and minerals on earth's surface have been found in canada and australia and are from the:
if x + 2 is a factor of x^2 +mx + 14 find m
Complete the square to rewrite y = x^2 – 6x + 5 in vertex form. Then state whether the vertex is a maximum or a minimum and give its coordinates. A. Minimum
What would happen if the fatty acids in a cell membrane were polar molecules?