Exercise: Circle STDIN
- Create a file called
circle_stdin.crthat will ask the user for a number. - Then wait till the user types in a number (the radius of a circle).
- Print the area and the circumference of the circle.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
circle_stdin.cr that will ask the user for a number.