0
Scanner oku=new Scanner(System.in);
       int n,i=1,top=0,ort=0;
       while(true)
       {
         
           System.out.print("Bir sayi giriniz=");
           n=oku.nextInt();
           if (n==0) {
              System.out.println("0 sayısı girildiği için programdan çıkıyoruz kanka k.b");
              System.out.println("Sayıların ortalaması"+ort);
              break;
           }
           top+=n;
           ort=top/i;
           i++;
Next
Sonraki Kayıt
Previous
This is the last post.

Yorum Gönder

 
Top