Message based on calculation result
Instructions
Take this simple calculation and save its result in a varaible result
:
log((12^3+200)/400)
Write an if-else statement to display a message based on whether the value is negative or non-negative (positive or 0):
- non-negative:
"The value of 'result' is non-negative!"
- negative:
"The value of 'result' is negative!"