Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main () {
- FILE *arquivo;
- int a=1,b=2,c=3,d=4,e=5,f=6;
- int aa=0,bb=0,cc=0,dd=0,ee=0,ff=0;
- int contador=0;
- arquivo=fopen("aulas4you.txt","w" );
- aa=0;
- for(a=1;a<=55;a++){
- bb=0;
- for(b=bb+1+a;b<=57;b++){
- cc=0;
- for(c=cc+1+b;c<=58;c++){
- dd=0;
- for(d=dd+1+c;d<=59;d++){
- ee=0;
- for(e=ee+1+d;e<=60;e++){
- ff=0;
- for(f=e+1;f<=60;f++){
- fprintf(arquivo," %d %d %d %d %d %d \n " ,a,b,c,d,e,f);}
- if(f==61){ee++;}
- } if(e==60){dd++;}
- } if(d==59){cc++;}
- } if(c==58){bb++;}
- } if(b==57){aa++;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement