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

+1

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

+2

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

+2

thank you Aaron