C:\Users\ar114\Documents\NetBeansProjects\ProgrammingExam1_CalebFontenot\src\programmingexam1_calebfontenot\QuotientAndRemainder.java |
package programmingexam1_calebfontenot;
import java.util.Scanner;
@author
public class QuotientAndRemainder {
public static void main(String[] args) {
int number1, number2, quotient, remainder;
Scanner input = new Scanner(System.in);
System.out.print("Enter 2 variables and I will calculate the "
+ "quotient and the remainder: ");
number1 = input.nextInt();
number2 = input.nextInt();
quotient = number1 / number2;
remainder = number1 % number2;
System.out.println("The quotient is: " + quotient);
System.out.println("The remainder is: " + remainder);
}
}