Where am i going wrong | Sololearn: Learn to code for FREE!


Where am i going wrong

Trying to use srand(time(0)) and rand() to generate random values for the default on an equation to keasure the volume of a cube commented out is the code from the lesson that teaches srand https://code.sololearn.com/cOwPB57rAOVS/?ref=app

4/8/2020 3:42:53 AM

Joshua Flynn

2 Answers

New Answer


What's the problem though? You just need to put the code in the main function and it works: https://code.sololearn.com/c2EIimBijhty/?ref=app


thank you Aaron