O
onkar
I am in a situation wherein I want to process input line by line .
Each line contians numbers.
sample input :
1 2 3 4 5
5 6 7
1
2 3 4 56 7 8
0
my program must take 1 2 3 4 5 first -> process it -> 5 6 7 -> process
it and likewise. How can i do it without considering each line as a
string and seperating out numbers ? Can I directly use some kind of
loop ? and how is the loop going to terminate ?
Each line contians numbers.
sample input :
1 2 3 4 5
5 6 7
1
2 3 4 56 7 8
0
my program must take 1 2 3 4 5 first -> process it -> 5 6 7 -> process
it and likewise. How can i do it without considering each line as a
string and seperating out numbers ? Can I directly use some kind of
loop ? and how is the loop going to terminate ?