Thread: How to create a program that wont allow negative numbers.

  1. #1
    Registered User
    Join Date
    Sep 2013
    Location
    New York, New York, United States
    Posts
    1

    How to create a program that wont allow negative numbers.

    I have a homework assignment due that told me for the "input specification" that "n" is an integer greater then 0. How would I put this in and where?

  2. #2
    Registered User
    Join Date
    Jul 2013
    Posts
    41
    Hi Cathyruth - quickly before you get hammered on here by all the hardcore fans, you're going to need to pop some example code in
    *here*
    and some more code
    *here*
    which shows what youve done so far - that way people will be more likely to help you and less likely to want to tear you a new one just for being a beginner

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Negative Numbers
    By r_james14 in forum C Programming
    Replies: 12
    Last Post: 12-20-2011, 03:01 AM
  2. Negative numbers in C
    By BlaX in forum C Programming
    Replies: 18
    Last Post: 06-29-2009, 06:30 PM
  3. negative random numbers
    By manzoor in forum C++ Programming
    Replies: 12
    Last Post: 01-13-2008, 06:11 AM
  4. Negative Numbers
    By cgod in forum C++ Programming
    Replies: 4
    Last Post: 02-07-2005, 08:57 AM
  5. Negative Numbers
    By Quantrizi in forum C++ Programming
    Replies: 7
    Last Post: 10-12-2003, 12:48 AM

Tags for this Thread