CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cplusplusnoob

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,585

    Re: Ignore negative number

    True however it would still take an inputted negative number how do i prevent that from happening.
  2. Replies
    4
    Views
    5,585

    Ignore negative number

    Hey I need help with ignoring negative numbers when I am trying to add up only positive numbers.


    SAMPLE:
    if (num>=0) {
    sum= sum + num;
    }
    else
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured