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

It is important for goals to have accomplishment dates because:
jerrod has c baseball cards. Linda has 38 baseball cards, which is 5 more than one-third the number Jerrod has. Which equation shows an equality between two d
what would happen if james didnt come in the house until dark
how does the stem root leaves in flower work together to keep it alive
To correctly punctuate sentences you need to make use of _____. comas comets commas commits
Is marijuana intoxicated driving more dangerous that alcoholic intoxicated driving?
Help lllotkrkrejeueusu
What two dri values will never co-exist for the same nutrient?
On a quiz, Loretta answered 8 out of 12 questions correctly. At the same rate, how many questions would Loretta get correct on a 90-question test?
which of the following was one of Triple Entente until 1917? A) Russia B) Turkey C) Czechoslovakia D) Spain