Code:
I am not sure how to read from file. For example, i have a file said
2
1 2
3
1 2 3
if i need to read the first number represent how many number and 2nd line show the number 1 and 2
when i read 3rd line it show there are 3 number so the 4th row show 1 2 3 is the 3 number how can i do it?
when i program it i program something like this but it doesn't work? Instead it only show
2 number of interger
1 number of interger 2
3 number of interger
1 number of interger 2 3
how can i do it so that it will read first line and 3rd line (2 and 3) as an variable of number_of_interger. And read 2nd and 4th line (1, 1, 2, and 3) as number?