Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Test;
- import java.util.Scanner;
- public class Zadanieif {
- public static void main(String [] args){
- Scanner odczyt = new Scanner(System.in);
- System.out.println("Podaj 1 liczbę");
- int a = odczyt.nextInt();
- System.out.println("Podaj 2 liczbę");
- int b = odczyt.nextInt();
- if(a==b)
- System.out.println("Podane liczby są równe");
- else if(a > b)
- System.out.println("Pierwsza liczba jest większa");
- else(a < b)
- System.out.println("Pierwsza liczba jest mniejsza");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement