I've 13 int number as a list in txt file.
34
55
99
120
57
45
49
30
32
21
56
22
0
The last value is a 0 and is NOT one of the values to be used in any calculation . I am supposed to create only one array as global variable.
So what would be the logic behind(with code) to read all the numbers from the file except the last one (i.e, 0) and put them in globally created array.
and if 0 is situated between 45 and 49; in that case we have to take that 0 as the value of array.
Thank you !
I hope I'll get solution soon...
34
55
99
120
57
45
49
30
32
21
56
22
0
The last value is a 0 and is NOT one of the values to be used in any calculation . I am supposed to create only one array as global variable.
So what would be the logic behind(with code) to read all the numbers from the file except the last one (i.e, 0) and put them in globally created array.
and if 0 is situated between 45 and 49; in that case we have to take that 0 as the value of array.
Thank you !
I hope I'll get solution soon...
Comment