+ 5

How to enter multiple input

26th Jul 2022, 10:43 AM
Always Learn MorešŸ˜Ž
Always Learn MorešŸ˜Ž - avatar
7 Answers
+ 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
26th Jul 2022, 11:24 AM
Suparna Das
Suparna Das - avatar
+ 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
26th Jul 2022, 11:40 AM
Arnav Gumber
Arnav Gumber - avatar
28th Jul 2022, 10:33 AM
jishal
jishal - avatar
0
In sololearn, split multiple inputs in different lines Hope it helps!
26th Jul 2022, 11:13 AM
Arnav Gumber
Arnav Gumber - avatar
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
26th Jul 2022, 4:32 PM
sree harsha
sree harsha - avatar
- 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.
26th Jul 2022, 11:50 AM
Slick
Slick - avatar
- 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.
28th Jul 2022, 5:59 AM
Ashu Banna
Ashu Banna - avatar