Skip to main content

Algorithm, Flowchart and Program code to print the larger of two numbers

      Q. Write a program in C to print the larger of two numbers with    
           the help of algorithm and flowchart.


     Algorithm:

      Step 1: Start
      Step 2: Read a, b .        /* a, b two numbers */ 
      Step 3: If a>b then        /*Checking */
                      Display “a is the largest number”.
                  Otherwise
                      Display “b is the largest number”.
  Step 4: Stop.


    Flowchart : 


  Program: 





   Output: 



Comments

  1. its very helpful for me. keep posting.thnk u.

    ReplyDelete
    Replies
    1. i'm very happy that you liked my post. Thank you very much.

      Delete
  2. This is very easy and simplest method and thus is very easy to understand and helpful for me thanks for post this

    ReplyDelete
  3. Very simplest method.very good .Thank you😊😊

    ReplyDelete
  4. it helps me so much in my examination

    ReplyDelete
  5. Really helpful.
    Continue to post

    ReplyDelete
  6. It is very useful thank u so much for posting this

    ReplyDelete
  7. youtube.com/advice/honeyman/nostalgia-and-wasting-hours
    youtube.com/advice/honeyman/nostalgia-and-wasting-hours › youtube › youtube Apr 14, 2021 — Apr 14, youtube to mp3 convert 2021 What is youtube.com/advice/honeyman/nostalgia and wasting time on YouTube? If so, I suggest you make this my very first

    ReplyDelete
  8. Thank you so much!

    ReplyDelete
  9. It's really helpful please provide more. Keep ur hard work. Thank you

    ReplyDelete
  10. Thanks for helping me in exam

    ReplyDelete

Post a Comment