I know that, but the above program was just for 5 lines. For user input of lines, let us take the input and store it in variable m. Now, by your method, if user will input 952 or 2000, your program...
Type: Posts; User: Abhilash
I know that, but the above program was just for 5 lines. For user input of lines, let us take the input and store it in variable m. Now, by your method, if user will input 952 or 2000, your program...
No Need for 2 dimensional array.
To solve this problem, you have to see the logic of this problem. What does the problem show? At first, you have to print 11 (15-4) to 15, then 7 (10-3) to 10,...