interest computation program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enert
    New Member
    • Sep 2007
    • 1

    #1

    interest computation program

    I am writing a project for class computing simple interest. The program compiles so I know my syntax is correct. My logic looks correct but its not giving me the correct answers. I think it has something to do with my specifications of the type of input. What kind of input (i.e. %d,%f,%lf,%Lf) would I use if the input such as interest was a simple decimal numer such as 0.0835? I'm not looking for the solution... just some help, figuring this out. Thanks
  • ilikepython
    Recognized Expert Contributor
    • Feb 2007
    • 844

    #2
    Originally posted by enert
    I am writing a project for class computing simple interest. The program compiles so I know my syntax is correct. My logic looks correct but its not giving me the correct answers. I think it has something to do with my specifications of the type of input. What kind of input (i.e. %d,%f,%lf,%Lf) would I use if the input such as interest was a simple decimal numer such as 0.0835? I'm not looking for the solution... just some help, figuring this out. Thanks
    To input a float, you should use "%f" with scanf().

    Comment

    Working...