Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package cariaga_ite012;
  7.  
  8. /**
  9. *
  10. * @author IT12FC1
  11. */
  12. import java.text.*;
  13. import java.util.*;
  14. public class prelab1 {
  15.  
  16. public static void main(String[] args)
  17. {
  18. Scanner input = new Scanner(System.in);
  19. System.out.print("\nEnter first number: ");
  20. int num1 = input.nextInt();
  21. System.out.print("\nEnter second number: ");
  22. int num2 = input.nextInt();
  23. System.out.print("\nEnter third number: ");
  24. int num3 = input.nextInt();
  25. System.out.println("The sum is:"+(num1+num2+num3));
  26. System.out.println("the difference: " +(num1-num2-num3));
  27. System.out.println("The the product is:"+(num1*num2*num3));
  28. System.out.println("The Qoutient is:"+(num1/num2/num3) / 4 );
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement