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!!
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.