#include <stdio.h>
#include <windows.h>
void main()
{
int one,two,three,four;
float count;
for(one = 1; one <= 15; one++)
{
for(two = one+1; two <= 15; two++)
{
for(three = two+1; three <= 15; three++)
{
for(four = three+1; four <= 15; four++)
{
count++;
printf("%d-%d-%d-%d/t",one,two,three,four);
}
system("pause");
}
}
}
printf("%f",count);
}
待优化……