- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExercise06.java
More file actions
Latest commit
11 lines (10 loc) · 464 Bytes
/
Copy pathExercise06.java
File metadata and controls
11 lines (10 loc) · 464 Bytes
1
2
3
4
5
6
7
8
9
10
11
publicclassExercise06 {
publicstaticvoidmain(Stringarg[]) {
// The fraction 22/7 is pretty close to pi. How close?
// Write a program that computes 22/7, then prints out:
// - the result of that fraction (as a decimal number)
// - the actual value of Pi (as defined in Java's Math library)
// - and the difference between the two (as a decimal number)
// Add your code here, then click "run" to test it.
}
}