File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .company ;
2+
3+ import java .util .Scanner ;
4+
5+ public class UcSayiEnBuyuk {
6+ public static void main (String args []){
7+ Scanner scanner = new Scanner (System .in );
8+ System .out .print ("Birinci Sayıyı Giriniz: " );
9+ int sayi1 = scanner .nextInt ();
10+ System .out .print ("İkinci Sayıyı Giriniz: " );
11+ int sayi2 = scanner .nextInt ();
12+ System .out .print ("Üçüncü Sayıyı Giriniz: " );
13+ int sayi3 = scanner .nextInt ();
14+
15+ int enbuyuk = sayi1 ;
16+ int enkucuk = sayi1 ;
17+
18+ if (sayi2 > enbuyuk ){
19+ enbuyuk = sayi2 ;
20+ }
21+ if (sayi2 < enkucuk ){
22+ enkucuk = sayi2 ;
23+ }
24+ if (sayi3 > enbuyuk ){
25+ enbuyuk = sayi3 ;
26+ }
27+ if (sayi3 < enkucuk ){
28+ enkucuk = sayi3 ;
29+ }
30+
31+ System .out .println ("En Büyük Sayı: " +enbuyuk );
32+ System .out .println ("En Küçük Sayı: " +enkucuk );
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments