C Program To Generate All Combinations of 1, 2 and 3
Satish B
http://technotip.com/7509/c-program-to-generate-all-combinations-of-1-2-and-3/
Lets write a C program to generate all combinations of 1, 2 and 3 using for loop.
Logic To Generate All Combinations of 1, 2 and 3 In this program we take 3 for loops. Nesting of for loops go 3 levels deep. For every iteration of outer most for loop, the inner for loop executes 3 times. Similarly, for every iteration of the inner for loop, the inner most for loop executes 3 times. At the end of 3 iteration of outer most for loop, all the combinations of numbers 1, 2 and 3 are generated
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=E3NmfSdEKFQ
5160341 Bytes