The flowchart of the program that prints the absolute value of a number entered from the keyboard to the screen?


Absolute number means always giving positive number. The absolute number of -5 is 5. The absolute number of 5 is 5.

First let me provide you the algorithm,

  1. Start
  2. Read the number from the user
  3. Check if the number is negative
  4. If the number is negative, then multiply it by -1 to get its absolute value
  5. Print the absolute value of the number
  6. End

The Flow chart is


Post a Comment

0 Comments