I trying to type C program to print the combination of given numbers but unable to get proper output. So please provide me some suggestions about this. Any help will be appreciated.
I trying to type C program to print the combination of given numbers but unable to get proper output. So please provide me some suggestions about this. Any help will be appreciated.
Use code given below to print the Combination of numbers:
Code:#include<stdio.h> Void main () { int a1,b1,c1; for(a1=1;a1<4;a1++){ for(b1=1;b1<4;b1++){ for(c1=1;c1<4;c1++){ if((a1! b1) && (b1! c1) && (a1! c1)) { printf(" %d%d%d n" a1,b1,c1); }}}}}
Bookmarks