Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package cariaga_ite012;
- /**
- *
- * @author IT12FC1
- */
- import java.text.*;
- import java.util.*;
- public class prelab1 {
- public static void main(String[] args)
- {
- Scanner input = new Scanner(System.in);
- System.out.print("\nEnter first number: ");
- int num1 = input.nextInt();
- System.out.print("\nEnter second number: ");
- int num2 = input.nextInt();
- System.out.print("\nEnter third number: ");
- int num3 = input.nextInt();
- System.out.println("The sum is:"+(num1+num2+num3));
- System.out.println("the difference: " +(num1-num2-num3));
- System.out.println("The the product is:"+(num1*num2*num3));
- System.out.println("The Qoutient is:"+(num1/num2/num3) / 4 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement