Hamdan-Maharoof / Test8_infs3203

Repository used in INFS3203 course
0 stars 0 forks source link

The square_root Operation in the Calculator Class Lacks a Condition for Handling Negative Numbers. #8

Open Git-Kar33 opened 9 months ago

Git-Kar33 commented 9 months ago

Steps to Reproduce

Run the provided calculator program. Choose the operator "square_root" Enter a negative number

Expected result The user is asked to enter a number and the output is the square root of that number. If the number is negative it prints an error message.

Actual result The code generates an error.

image