0
Scanner oku=new Scanner (System.in);
       int s,b=0;
        for (int i = 1; i <=5; i++) {
            System.out.print("Bir sayi giriniz=");
            s=oku.nextInt();
            if(s>b)
            {
            b=s;
         
            }
         
        }
        System.out.println("En büyük DEĞER="+b);

Yorum Gönder

 
Top