I can only seem to get it to display the quotient and the decimal. For example if I divide 9 by 2, I will get 4.5. However, I would like to get it to be 4r 1. My current code is import java.util.Scanner;
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);       
 } 
}
 
     
     
    