Kod: Zaznacz cały
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Czesc2;
/**
*
* @author Z710
*/
public class IfElse {
public static void main(String[] args){
int a = 23;
int b = 13;
if(a>b){
System.out.println(a);
System.out.println(b);
}
else {
System.out.println(b);
System.out.println(a);
}
else if(a==b)
System.out.println(a);
}
}