Create pseudocode that finds the absolute value of a number and stores the result in the abs variable.
Computer scienceAlgorithms and Data StructuresIntro to algorithms and data structuresPseudocode and representation
Pseudocode basics
Find abs
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
abs = -a
if a >= 0 then:
a = -5
abs = a
else:
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.