-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathruszee2.java
More file actions
22 lines (18 loc) · 605 Bytes
/
ruszee2.java
File metadata and controls
22 lines (18 loc) · 605 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.Scanner;
public class CodesCracker
{
public static void main(String[] args)
{
float numerator, denominator;
int quotient, remainder;
Scanner s = new Scanner(System.in);
System.out.print("Enter the Dividend: ");
numerator = s.nextFloat();
System.out.print("Enter the Divisor: ");
denominator = s.nextFloat();
quotient = (int) (numerator/denominator);
remainder = (int) (numerator%denominator);
System.out.println("\nQuotient = " +quotient);
System.out.println("Remainder = " +remainder);
}
}