+ 5
How to enter multiple input
7 Antworten
+ 6
Always Learn More😎
it's a program in C language to take multiple inputs
Here is an example of taking more than one integer inputs
https://code.sololearn.com/cxWxyznY9bd0/?ref=app
+ 1
There are 5 inputs.
So when you click on run, it asks to submit an input.
You can input 5 numbers by splitting them in multiple lines like this -
1
2
3
4
5
0
In sololearn, split multiple inputs in different lines
Hope it helps!
0
C language, support to take multiple inputs at a time
That is possible using one of the formatted functions ie scanf();
syntax
scanf(”Formatspecifier1Formatspecifier2”,&variable1, &variable2);
Example
scanf(”%d%d”,&a, &b);
In the above %d refers to the format specifier related to integer
- 1
c reads its input off the steam. You can write it all in a single line seperated by spaces as long as you know how to scan the data.
- 1
1.When this program runs it provides garbage value,
2.what if, sometime you enter values in input less than 5.
3.there is not any restrictions to input atleast five numbers.