Programming and IT Research Center (ج البرمجة وتكنولوجيا المعلومات مركز الأبحاث)
widgets
Friday, April 12, 2013
permutation
permutation
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
for(a=1;a <=3;a++)
{
for(b=1;b <=3;b++)
{
for(c=1;c <=3;c++)
{
if(b !=a && c !=a && c !=b)
{
printf("%d, %d, %d\n", a,b,c);
}
}
}
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment