Parcourir la source

if изменены на else if

Blueris il y a 1 mois
Parent
commit
a30e72de5a
1 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. 11 11
      AvaloniaApplication1/MainWindow.axaml.cs

+ 11 - 11
AvaloniaApplication1/MainWindow.axaml.cs

@@ -171,47 +171,47 @@ namespace AvaloniaApplication1
                 Zod = "Îâåí";
 
             }
-            if (day >= 20 && mounth == 4 || day <= 20 && mounth == 5)
+            else if (day >= 20 && mounth == 4 || day <= 20 && mounth == 5)
             {
                 Zod = "Òåëåö";
             }
-            if (day >= 21 && mounth == 5 || day <= 20 && mounth == 6)
+            else if (day >= 21 && mounth == 5 || day <= 20 && mounth == 6)
             {
                 Zod = "Áëèçíåöû";
             }
-            if (day >= 21 && mounth == 6 || day <= 22 && mounth == 7)
+            else if (day >= 21 && mounth == 6 || day <= 22 && mounth == 7)
             {
                 Zod = "Ðàê";
             }
-            if (day >= 23 && mounth == 7 || day <= 22 && mounth == 8)
+            else if (day >= 23 && mounth == 7 || day <= 22 && mounth == 8)
             {
                 Zod = "Ëåâ";
             }
-            if (day >= 23 && mounth == 8 || day <= 22 && mounth == 9)
+            else if (day >= 23 && mounth == 8 || day <= 22 && mounth == 9)
             {
                 Zod = "Äåâà";
             }
-            if (day >= 23 && mounth == 9 || day <= 22 && mounth == 10)
+            else if (day >= 23 && mounth == 9 || day <= 22 && mounth == 10)
             {
                 Zod = "Âåñû";
             }
-            if (day >= 23 && mounth == 10 || day <= 21 && mounth == 11)
+            else if (day >= 23 && mounth == 10 || day <= 21 && mounth == 11)
             {
                 Zod = "Ñêîðïèîí";
             }
-            if (day >= 22 && day <= 31 && mounth == 11 || day <= 21 && mounth == 12)
+            else if (day >= 22 && day <= 31 && mounth == 11 || day <= 21 && mounth == 12)
             {
                 Zod = "Ñòðåëåö";
             }
-            if (day >= 22 && mounth == 12 || day <= 19 && mounth == 1)
+            else if (day >= 22 && mounth == 12 || day <= 19 && mounth == 1)
             {
                 Zod = "Êîçåðîã";
             }
-            if (day >= 20 && mounth == 1 || day <= 18 && mounth == 2)
+            else if (day >= 20 && mounth == 1 || day <= 18 && mounth == 2)
             {
                 Zod = "Âîäîëåé";
             }
-            if (day >= 19 && mounth == 2 || day <= 20 && mounth == 3)
+            else if (day >= 19 && mounth == 2 || day <= 20 && mounth == 3)
             {
                 Zod = "Ðûáû";
             }