Q6.Consider the following code snippet where `num` gets an integer number from user input.
```
num = int(input())
if num > 0:
num = num + 100
else:
num = abs(num - 100)
print(num)
```
Choose the correct options regarding the above code.
Save
Check
Details
Q6
27 Oct 2024
Q6.Consider the following code snippet where `num` gets an integer number from user input.
```
num = int(input())
if num > 0:
num = num + 100
else:
num = abs(num - 100)
print(num)
```
Choose the correct options regarding the above code.