-
Notifications
You must be signed in to change notification settings - Fork 0
/
Maç.cpp
107 lines (95 loc) · 1.4 KB
/
Maç.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(){
srand(time(NULL));
int i,sayi,dizi[14]={ 0 };
char takim1,takim2;
for(i=1; i< 15; i++)
{
sayi=rand() % 14 ;
dizi[i]=sayi;
printf("%d\t",dizi[i]);
if(dizi[i]!=dizi[i+1])
{
if(sayi==1)
{
printf("Mert Turkoz\n");
break;
}
else if (sayi==2)
{
printf("Mert Korkmaz\n");
break;
}
else if(sayi==3)
{
printf("Furkan Ezer\n");
break;
}
else if(sayi==4)
{
printf("Omer Faruk\n");
break;
}
else if(sayi==5)
{
printf("Efe\n");
break;
}
else if(sayi==6)
{
printf("Ferhat\n");
break;
}
else if(sayi==7)
{
printf("Furkan Ta\n");
break;
}
else if(sayi==8)
{
printf("Kerem San\n");
break;
}
else if(sayi==9)
{
printf("Renas\n");
break;
}
else if(sayi==10)
{
printf("Gokdeniz\n");
break;
}
else if(sayi==11)
{
printf("Burak\n");
break;
}
else if(sayi==12)
{
printf("Emirhan\n");
break;
}
else if(sayi==13)
{
printf("Atahan\n");
break;
}
else if(sayi==14)
{
printf("Berkay\n");
break;
}
else
{
printf("yanlis bisi var");
break;
}
}
else
break;
}
return 0;
}