0

How pattern generate without using a for loop

in c++ or c

23rd Aug 2017, 4:28 PM
lalswamy B
lalswamy B - avatar
6 ответов
+ 3
So basically, use recursion
24th Aug 2017, 3:37 PM
Zeke Williams
Zeke Williams - avatar
+ 2
using while loop or do while loop I guess ?
23rd Aug 2017, 4:34 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
ya but it's not easy compare to for other then
23rd Aug 2017, 4:37 PM
lalswamy B
lalswamy B - avatar
+ 1
for(int j = 0; j < 10; ++j) cout<<j; <=> int j = 0; while(j < 10) cout << j++; <=> int j = 0; do{ cout << j ++; }while( j < 10);
23rd Aug 2017, 5:11 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
23rd Aug 2017, 5:28 PM
sayan chandra
sayan chandra - avatar