Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    New to the CF scene
    Join Date
    Nov 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Airblader View Post
    You declared "numofyears" instead of "numofyears1". Also "multiply((salary1,1.07)+1000);" is wrong (parantheses are not set correctly).
    Oh my gosh I didn't even notice the "numofyears" was incorrectly declared! Thanks so so much! It's working much better now.

  2. #17
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts
    Logic Ali has a good point about the structure of your code. I would've gotten to that, too, I just first wanted you to make your code work. Duplicating a whole bunch of stuff everytime you add something is really an anti-pattern that you need to learn to avoid.


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •