We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4dfd52d + 414c9e1 commit 2111ddfCopy full SHA for 2111ddf
calisma02/ornek2.go
@@ -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
31
32
33
34
35
+}
36
0 commit comments