mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-04 15:56:20 +02:00
Add exercises 1, 2 and 3
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
es = int(input("Entrer un nombre entier (0 à 255) : "))
|
||||
|
||||
if es >= 127:
|
||||
rbn = es - 256
|
||||
else:
|
||||
rbn = es
|
||||
|
||||
print("Cela représente l'entier signé : ", rbn)
|
||||
Reference in New Issue
Block a user