Hi. I'm currently learning Java from a book called "Introduction to Java Programming 9th Edition." I'm only on the first chapter so I only learned how to display text. I'd like to know if I got the answer to an exercise correct, because I cannot view answers to odd numbered exercises.
Here's the question:
Here's my solution:
Here's a solution that I found online:
Are either right or wrong? How would you approximate pi using just the System.out.println function?
Here's the question:
Here's my solution:
Here's a solution that I found online:
Are either right or wrong? How would you approximate pi using just the System.out.println function?