Little man program

  1. Write a Little Man program to accept an unknown amount of input values. the largest value enetered will be the output value. the value 0 should be used as a

    flag to indicate the end of input.
    Any suggestions please help,
  2. jcsd
  3. Please post this in the proper format for homework problems and show what you have been able to do yourself and ask specific question about what you are stuck on.

    Also, you should read the forum rules. Just asking for an answer is not how this forum works.
  4. basically i just want to know should a loop be used and how is the value stored thanks
  5. jim mcnamara

    jim mcnamara 1,565
    Science Advisor
    Gold Member

    The value is stored in an integer variable. The loop stops when the variable gets set to zero.

    Please post all of you requirements, this is clearly homework. We need to know what language(s) you are required to use, etc.
  6. Also, post your work here in the forum, not in a PM to me.
  7. jtbell

    Staff: Mentor

Know someone interested in this topic? Share this thead via email, Google+, Twitter, or Facebook

Have something to add?