Skip to content

Commit 6e9422e

Browse files
committed
07-integers: Add floating-point challenge
1 parent 44a9b40 commit 6e9422e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
public class FloatingPoint {
22
public static void main(String[] args) {
3+
double dollar = 1.00;
4+
double dime = 0.10;
5+
int number = 7;
6+
System.out.println("A dollar less " + number + " dimes is $" + (dollar - number * dime));
37
}
48
}

0 commit comments

Comments
 (0)