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

Write an original definition for neap tide and for spring tide
Rainforest deforestation is contributing to _______. a. a decline in global biodiversity b. the reduction of greenhouse gases c. increased soil moisture d. incr
The incident that started the Sepoy Rebellion was related to a rumor about the
should schools have a dress code ?
forest mangers sometimes start small fires in order to
what do u mean by rotation of earth
Most potential energy captured from food molecules is stored as ___. ATP AMP ADP
Read the sentence. Laughing at my question, he shook his head and said no. Which best identifies the word that is modified by the underlined participial phrase
Your central idea is a statement that captures in a single sentence: A. the essence of your speech. B. your general purpose. C. your specific purpose. D. you
explain what is the same amount two fractions that are like fractions