Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Scanner lukija = new Scanner(System.in);
- System.out.println("Anna ensimmäinen luku: ");
- int luku1 = Integer.valueOf(lukija.nextLine());
- System.out.println("Anna toinen luku: ");
- int luku2 = Integer.valueOf(lukija.nextLine());
- int luku = 5;
- if (luku > 8) {
- System.out.println("Suurempi luku: ");
- } else if (luku == 5) {
- System.out.println("Luvut ovat yhtä suuret" );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement