Question: Generate 3 random float numbers between 0 . 0 and 1 0 0 . 0 ( exclusive , less than 1 0 0 ) ,

Generate 3 random float numbers between 0.0 and 100.0(exclusive, less than 100), print them one by one, and print the sum of those numbers at the end.
Sample output:
1 : 8.316270103352085
2 : 79.30200388908376
3 : 46.501868323779775
----------------------
Total: 134.1201423162156

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!