Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void main()
- {
- int num[7]={0,}, i, k, j,temp;
- for(i=1; i<7; i++) scanf("%d", &num[i]);
- for (j = 1; j < 6; j++){
- for (k = j + 1; k < 7; k++){
- if (num[j] > num[k]){
- temp = num[j];
- num[j] = num[k];
- num[k] = temp;
- }
- }
- }
- if(num[1]&&num[2]&&num[3])
- {
- if(num[4]&&num[5]&&num[6])
- printf("gin");
- }
- else printf("lose");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement