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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
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