© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu
Quick Links
Easy Studies


C Program To Display Permutation Of Given Numbers
#include #include int lev=-1,n,val[50],a[50]; void main() { int i,j; clrscr(); printf("Enter Numbers to make Permutaion"); scanf("%d",&n); for(i=0;i

Output:

Enter Numbers to make Permutaion4
1
2
3
4
 1 2 3 4         1 2 4 3         1 3 2 4         1 4 2 3         1 3 4 2
 1 4 3 2         2 1 3 4         2 1 4 3         3 1 2 4         4 1 2 3
 3 1 4 2         4 1 3 2         2 3 1 4         2 4 1 3         3 2 1 4
 4 2 1 3         3 4 1 2         4 3 1 2         2 3 4 1         2 4 3 1
 3 2 4 1         4 2 3 1         3 4 2 1         4 3 2 1

 

 
SLogix Student Projects
bottom