``` package s1261101_hw3; import java.util.Scanner; public class S1261101_hw3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int []imp = new int [3]; int temp =0;// temo means temparay store for(int i=0;i<3;i++){ imp[i] = sc.nextInt(); } for(int i=0;i<3;i++){ int n = 3; for (int j= i+1;j<n;j++){ if(imp[i]<imp[j]){ temp = imp[i]; imp[i]=imp[j]; imp[j]=temp; } } } System.out.println(); for(int u=0;u<3;u++){ System.out.println(imp[u]); } } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up