Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- ConsoleReader in=new ConsoleReader(System.in);
- System.out.print("Unesite prvi broj? :");
- double a= in.readDouble();
- System.out.print("Unesite drugi broj? :");
- double b= in.readDouble();
- System.out.println("Zbroj je: "+(a+b));
- System.out.println("Razlika je: "+(a-b));
- System.out.println("Umno\u017eak je: "+(a*b));
- System.out.println("Prosjek je: "+(a+b)*.5);
- System.out.println("Udaljenost je: "+Math.abs(a-b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement