suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI
This commit is contained in:
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-38/25-NSI-38.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-38/25-NSI-38.pdf
Normal file
Binary file not shown.
12
Sujet_bac/Pratique/BNS_2025/25-NSI-38/25-NSI-38.py
Normal file
12
Sujet_bac/Pratique/BNS_2025/25-NSI-38/25-NSI-38.py
Normal file
@@ -0,0 +1,12 @@
|
||||
def binaire(a):
|
||||
'''convertit un nombre entier a en sa representation
|
||||
binaire sous forme de chaine de caractères.'''
|
||||
if a == 0:
|
||||
return ...
|
||||
bin_a = ...
|
||||
while ... :
|
||||
bin_a = ... + bin_a
|
||||
a = ...
|
||||
return bin_a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user