0

Make this program if you dare!!!!

if the input is 5,then output should be 1 2 9 3 8 10 4 7 11 14 5 6 12 13 15 Note:1.Without Array 2.it is just a program of "Flow Of Control" i.e. it can be made only with if condition,loop,cout etc. 3.Don't simply do this: cout<<"1\n"; cout<<"2 9\n"; cout<<"3 8 10\n"; cout<<"4 7 11 14\n"; cout<<"5 6 12 13 15\n";

2nd Feb 2017, 12:50 PM
Ishan Sharma
Ishan Sharma - avatar
3 Réponses
+ 2
Well, so be more imaginative in the title to differenciate ^^
2nd Feb 2017, 1:03 PM
visph
visph - avatar
+ 1
Please, don't send each days the same post! @@
2nd Feb 2017, 1:01 PM
visph
visph - avatar
0
this is not same as before it is based on input
2nd Feb 2017, 1:02 PM
Ishan Sharma
Ishan Sharma - avatar