poniedziałek, 14 maja 2012

If then else


class IfElse{
public static void main(String args[]){
int x =1, y=2;
if (x>y){
System.out.println("x większe od y");
}else if(x==y){
System.out.println("x równe y");
}
else{
System.out.println("x mniejsze od y");
}
}
}

Brak komentarzy:

Prześlij komentarz