Back to courtyard
Forked Paths · Stone · 4 min

abs branch -2

Print the absolute value of -2 using if, not abs().

Lv 1· 22/22· 3/1· 3
  • Match the required output

if n < 0: print -n else print n

2
1
2
3
4
5
6
7
8
The stone is quiet.