02.08.2023

1

Like

23

Views

sayıları sıralama

package Baslangic;
import java.util.Scanner;
public class SayilariSiralama {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a,b,c;
System.out.print("a sayısını giriniz: ");
a = input.nextInt();
System.out.print("b sayısını giriniz: ");
b = input.nextInt();
System.out.print("c sayısını giriniz: ");
c = input.nextInt();
if(a>b && b>c){
System.out.println(a+">"+b+">"+c);
} else if (b>a && a>c) {
System.out.println(b+">"+a+">"+c);
} else if (a>b && c>b) {
if(a>c){
System.out.println(a+">"+c+">"+b);
}else{
System.out.println(c+">"+a+">"+b);
}
}else if (c>b && b>a){
System.out.println(c+">"+b+">"+a);
} else if (b>a && c>a) {
if (b>c){
System.out.println(b+">"+c+">"+a);
}


}
}
}

Comments

You need to log in to be able to comment!

Furkan Buğdaycı

İzmir de ikamet ediyorum.

Location

İzmir, TR

Education

Elektrik Elektronik Mühendisi - İzmir Demokrasi Üniversitesi

Job Experience

Proje Yönetim Mühendisi - TCDD TEKNİK

© 2021 Patika Dev

facebook
twitter
instagram
youtube
linkedin

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.