Thread: Need help for a Com Sci project

  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    1

    Need help for a Com Sci project

    I have a project where you input numbers and certain numbers add or subtract different numbers. The number 9 adds 0, how do I set the variable which 9 is to 0. Sorry if this is obvious, im a beginner. Please reply soon project is due on dec 14th. Thank you

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    3,653
    I would suggest a switch statement.
    Switch Case in C - Cprogramming.com

    If you have yet to learn about that then use an "if" statement

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 08-02-2013, 06:45 PM
  2. Replies: 5
    Last Post: 02-23-2013, 03:37 PM
  3. Classes Project (Not class project)
    By adam.morin in forum C++ Programming
    Replies: 3
    Last Post: 02-28-2011, 01:48 AM
  4. Paid project - The Free Marketing Project
    By sharefree in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 10-27-2010, 02:15 PM
  5. your 11th & 12th grade c++ project or similar project
    By sleepyheadtony in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-13-2002, 05:14 PM

Tags for this Thread