CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Stupid problem

  1. #1
    Join Date
    Sep 2010
    Posts
    6

    Stupid problem

    Hey, I have to create a simple console application but I'm having trouble. I easily finished all the advanced assignments but I don't know how to approach this one because I'm not used to console.

    The user has to enter three integers. The console application has to return the biggest, smallest, sum, average, product. How would I go ahead with this? I tried by creating a lot of if statements but that didn't work :P

    Any help is greatly appreciated!

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Stupid problem

    This looks suspiciously like homework.... What have you done so far? Can you show us some code?

  3. #3
    Join Date
    Sep 2010
    Posts
    6

    Re: Stupid problem

    It wasn't homework but I figured it out. I used a lot of IF statements and it works.

    thanks anyway

  4. #4
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Re: Stupid problem

    Post your code , May be we can help it better

    Makdu
    visit : http://www.octopusplus.com
    If i helped you, Please rate me

    Visit http://www.octopusplus.com

  5. #5
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Stupid problem

    Quote Originally Posted by dr_goose91 View Post
    It wasn't homework but I figured it out. I used a lot of IF statements and it works.

    thanks anyway
    Doubtful. No real application has such requirements unless you are rewriting the Windows calculator as a console app for... some reason.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured