Posted on 2007-10-10
Last Modified: 2010-04-01
input three integers and out put them in ascending order using if else statement.
Question by:drnosa
    LVL 28

    Expert Comment

    LVL 39

    Expert Comment


    in EE experts are not allowed to make the work for you, they only can help. So you would need a serious attempt to solve the problem yourself. Post the code of your attempt and we can help further or ask for a starter.

    Regards, Alex
    LVL 53

    Accepted Solution

    As said : did you give this a try yet ? If so, can you post the code ? And tell us where you're stuck ? If you haven't tried yet, then why ? Maybe you don't know how/where to start ? Or maybe you don't understand the assignment ?

    Basically, what you have to do is use the standard input methods to read 3 values given by the user :


    then sort those three values using if/else only :


    and finally show the three sorted values to the user using standard output.
    LVL 6

    Expert Comment

    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

    I will leave the following recommendation for this question in the Cleanup Zone:
          Accept: Infinity08 {http:#20054743}

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    EE Cleanup Volunteer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
    Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now