Challenge: Compute the Absolute Value of a Number

Use what you have learned so far to write pseudocode and draw a flowchart to find the absolute value of a number.

Problem statement

Assume that you have a number n, and you want to find the absolute value of n.

Input

You take a number n as the input.

Output

You get the absolute value of n as the output.

Get hands-on with 1200+ tech skills courses.