Thread: IF-ELSE Function

  1. #1
    Registered User Virtuous1's Avatar
    Join Date
    Nov 2003

    Question IF-ELSE Function

    [text] I'm trying to write a program for a tax return that will read a dollar amount and print out the correct tax . . . using the IF-ELSE function, I've written out most of the program, however, when it comes to that different tax percentages to use for the various income, i'm stuck . . . How would I go about writing it? Any help with this will be greatly appreciated. [/text]

  2. #2
    Registered User
    Join Date
    Jun 2002
    post your code. let us c what you have.

    also, if else is not a function. its a statement.
    C++ Rules!!!!
    Microsoft Visual Studio .NET Enterprise

  3. #3
    Registered User Virtuous1's Avatar
    Join Date
    Nov 2003
    Okay, here's the code (I tried cutting and pasting the code but I couldn't get it go through):
    Last edited by Virtuous1; 11-16-2003 at 06:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 06:44 PM