no prob i'm just like u trying to gain knowledge and help others.... happy coding
Type: Posts; User: C++kingKnowledge
no prob i'm just like u trying to gain knowledge and help others.... happy coding
make it equal 0 after the while loop
ok i get it you want the number to generate a certain amount of times in the case that the number isn't one and keep count of other variables while that condition is true or not... just reset the...
i think i get what ur trying to do... just make the randNum1 generate without the while loop and see if that's what u had in mind... the use of that while loop makes possible for complications and...
u have in your while loop randNum1 != 1 but you also have if(randNum1 == 1) inside the loop so if that case is true then after that loop randNum1 will be equal to 1 so your while loop will never run...