Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Convert{
- public static void main(String [] args){
- Scanner reader = new Scanner(System.in);
- double dividend;
- double divisor;
- double quotient;
- System.out.print("Enter the dividend ");
- dividend = reader.nextDouble();
- System.out.print("Enter the divisor ");
- divisor = reader.nextDouble();
- quotient = dividend/divisor;
- System.out.print("The quotient is ");
- System.out.println(quotient);
- }
- }
Add Comment
Please, Sign In to add comment