0
Scanner oku=new Scanner(System.in);
        int gun;
       System.out.print("Bir gün giriniz=");
       gun=oku.nextInt();
     
       switch(gun)
       {
               case 1:
               case 2:
               case 3:
               case 4:
               case 5:
               System.out.print("HAFTA İÇİ BİR GÜNDÜR");
               break;
               case 6:
               case 7:
               System.out.print("HAFTA SONU BİR GÜN");
               break;
             
                   default:
      System.out.print("Yalnış bir gün girdin knk");
       
      }
   

Yorum Gönder

 
Top