Elysia is right, you should refer to your tutorials.
And indenting the code is very good for readibility, if you had 100's of lines of code without indenting, how are you ever going to find what...
Type: Posts; User: cullman
Elysia is right, you should refer to your tutorials.
And indenting the code is very good for readibility, if you had 100's of lines of code without indenting, how are you ever going to find what...
At the end of the main function before return 0; type system("pause");
I just did pennies =( pennies + 1)/100 to get the amount of pennies that day in dollar form
Well i got it now but i dont understand what you mean initialize it out of the loop, i did initialize and declare all my variables in the beginning
Because day 1 wouldnt start with penny unless i set penny to 1 and did two seperate cout statements but then the rest of the program wouldnt work because i needed to add up all the pennies and cout...
thats what i was thinking at first but it doesnt work...
NEVERMIND! before i posted this i wanted to try it out a couple times and i got it!!! i made the counter start at -1 so it would go to 0...
Hi this is a homework assignment, and I dont want anybody to just give it away because I really want to learn my self but I am so stumped.. I understand I need too add the first number of pennies...
Use modulus...im not sure how to spell it but it is an arithmetic symbol that looks like this. % .
Which gives the remainder of a number divided by a number. Hope that helps a little bit
yeah I didn't understand what his code was at first and then i realized that he is saying If the age is less than two then it is gonna be a male if the user enters M or a female if they enter...
well looks like i dont know how to post because I just replied with this long thing but it came out to be code /code for some reason...
but what i said pretty much was couldnt you just do and it...