PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# step 1: start
# step 2: store number in a variable N
N = float(input("check number:"))
# step 3: If N > 0, go to step 4, else go to step 5
if N > 0:
# step 4: positive case
print("positive")
# step 5: If N < 0, go to step 6, else go to step 7
elif N < 0:
# step 6: negative case
print("negative")
else:
# step 7: zero case
print("zero")
# step 8: finish
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск