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

How do you say 'fat pig' in German
Which sentence provides evidence that peoples tastes in food changed over the years of Julia Childs Career?   A. When many people rejected rich french foods , s
Write 10 sentences describing your weekend - what you did, normally do and going to do
Would a fire manager be for or against fire suppression?
In a bag of keys, there are 15 silver keys, 5 black keys, 11 copper keys, and 4 painted keys of various colors. One key is drawn out at random. What is the prob
Why do birds fly? And also how to get rid of scariness of birds?
Can anyone help me find the simplest form for 15/23 / 6/7
Find an equation of the line that (a) has the same y-intercept as the line and (b) is parallel to the line .
What do you measurement of capacity?
How Do I Write an Anonymous Letter?