Enter three sides for a triangle: 1.2 3.5 6
The area of the triangle is xxx.x
However I get error after i typed 3 inputs
Whatever you are, be a good one
posted 1 month ago
the nextLine method will return everything entered up to the Enter key.
If you want to enter the data on one line use the next or nextDouble method to read individual tokens
If you want to use the nextLine method, press Enter after every number has been entered.