Comment écrire un code pyton d un programme qui permet de lire un entier n de 3 chiffres puis d afficher la somme de ses chiff | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Comment écrire un code pyton d un programme qui permet de lire un entier n de 3 chiffres puis d afficher la somme de ses chiff

12th Oct 2020, 11:32 AM
Ranim Pas Plus
Ranim Pas Plus - avatar
16 Answers
0
vous devez simplement donner 3 chiffres suivis d'un espace
12th Oct 2020, 12:14 PM
Indranil
Indranil - avatar
0
j ai ps compris
12th Oct 2020, 11:41 AM
Ranim Pas Plus
Ranim Pas Plus - avatar
0
Je pense que ça peut être ta réponse https://code.sololearn.com/cnAO6z5USp7Y/?ref=app
12th Oct 2020, 11:45 AM
Indranil
Indranil - avatar
0
Nn malheureusement
12th Oct 2020, 11:48 AM
Ranim Pas Plus
Ranim Pas Plus - avatar
0
Vouliez-vous dire que le programme prendra n nombre de
12th Oct 2020, 11:52 AM
Indranil
Indranil - avatar
0
N c est entier de 3 chiffres
12th Oct 2020, 12:09 PM
Ranim Pas Plus
Ranim Pas Plus - avatar
0
Je fais son algorithme mais je ne peut pas faire son pyton regard
12th Oct 2020, 12:11 PM
Ranim Pas Plus
Ranim Pas Plus - avatar
0
pouvons-nous voir votre essai?
12th Oct 2020, 12:14 PM
Slick
Slick - avatar
0
Quel est votre problème avec mon code ... dites-moi plz afin que je puisse rectifier
12th Oct 2020, 12:27 PM
Indranil
Indranil - avatar
0
Slick quel est ton problème que tu ne peux pas lire mon
12th Oct 2020, 12:29 PM
Indranil
Indranil - avatar
0
Convert this given number to string at first n = str(n) then use for loop to iterate throw this string elements for i in n: You have to declare a variable to store the result result += int(i) print(result)
12th Oct 2020, 1:35 PM
HBhZ_C
HBhZ_C - avatar
0
Merci pour tous 😘😘😘
12th Oct 2020, 7:55 PM
Ranim Pas Plus
Ranim Pas Plus - avatar
- 1
Je transformerais le nombre en une chaîne, puis le diviserais, puis ajouterais toutes les versions entières du nombre divisé.
12th Oct 2020, 11:39 AM
Slick
Slick - avatar
- 1
J ai poster
12th Oct 2020, 12:21 PM
Ranim Pas Plus
Ranim Pas Plus - avatar
- 1
comme il l'a posté ci-dessus ^^^ haha ​​je ne peux pas lire cette égratignure
12th Oct 2020, 12:26 PM
Slick
Slick - avatar
- 1
Indranil je disais qu'elle devrait présenter un code comme vous l'avez fait. ce que je ne peux pas lire, c'est l'écriture manuscrite
12th Oct 2020, 12:30 PM
Slick
Slick - avatar