hiii
if i havehow can i get :Code:int A[4]={1,2,3,4}
1
1,2
1,2,3
1,2,3,4
2
2,3
2,3,4
3
3,4
i need 2 or 3 loops??? if you can write in code it's will be nice thnx!!
This is a discussion on about arry help!!!! within the C Programming forums, part of the General Programming Boards category; hiii if i have Code: int A[4]={1,2,3,4} how can i get : 1 1,2 1,2,3 1,2,3,4 2 2,3 2,3,4 3 ...
hiii
if i havehow can i get :Code:int A[4]={1,2,3,4}
1
1,2
1,2,3
1,2,3,4
2
2,3
2,3,4
3
3,4
i need 2 or 3 loops??? if you can write in code it's will be nice thnx!!
So you have
- one loop to decide where to start
- one loop inside it to decide how many to print.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.