beginner in programming: drawing flowchart. what should put as input if i want to prompt user to input a number and whatever the last digit+?

prompt user to input a number and whatever the last digit of that  number is, the system spits it our. for example if the number is 4583, the system will display the number 3. also how can i make it so that the remainder after dividing by 10 is taken advantage of?

1 Answer

Relevance
  • EddieJ
    Lv 7
    1 month ago
    Favorite Answer

    A flowchart is a graphical form of pseudocode.  In other words, the text that is placed in the flowchart symbols is pseudocode -- unless you are supposed to be using code from a particular programming language.

    Programming languages generally have a <mod> operator, commonly a percent sign (%) that calculates the remainder.

    So

    remainder = 4583 % 10

    will assign 3 to remainder.

    I'm heading to a fast food restaurant now.  Do I need to turn left or right into the parking lot?

Still have questions? Get your answers by asking now.