Skip to content

Commit 2111ddf

Browse files
authored
Merge pull request #1 from Gokcekuler/master
calisma02 icin cozum eklendi
2 parents 4dfd52d + 414c9e1 commit 2111ddf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

calisma02/ornek2.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
var sayi int
7+
fmt.Println("1 ile 7 arasında bir sayı giriniz")
8+
fmt.Scanf("%d", &sayi)
9+
10+
for sayi != 0 {
11+
switch sayi {
12+
case 1:
13+
fmt.Println("Pazartesi")
14+
case 2:
15+
fmt.Println("Salı")
16+
case 3:
17+
fmt.Println("Çarşamba")
18+
case 4:
19+
fmt.Println("Perşembe")
20+
case 5:
21+
fmt.Println("Cuma")
22+
case 6:
23+
fmt.Println("Cumartesi")
24+
case 7:
25+
fmt.Println("Pazar")
26+
default:
27+
fmt.Println("Geçersiz bir sayı girdiniz")
28+
29+
}
30+
fmt.Println("1 ile 7 arasında bir sayı giriniz")
31+
fmt.Scanf("%d", &sayi)
32+
33+
}
34+
35+
}
36+

0 commit comments

Comments
 (0)