Files
Coleman-Code/SDrive/programs/Mod1/debugs/DbL3c.java
T
Amrit Panesar 6dd63cc439 Archives from S:\ Drive
Good to keep around methinks
2015-04-01 21:23:15 -07:00

15 lines
392 B
Java

public class DbL3c
// Demonstrates modulus and printing
{
public static void main(String args[])
{
double a = 99, b = 8, result;
int c = (long) 7777777777777;
result = a % b;
System.out.println("Divide " + a + " by " + b);
System.out.println("remainder is " + result);
System.out.print("c is a very large number:");
System.out.println(c);
}
}