We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8785d7 commit fabc91bCopy full SHA for fabc91b
ex023.py
@@ -1,3 +1,4 @@
1
+#Separating digits from a number
2
#23- Write a program that reads a number from 0 to 9999 and displays each of the separate digits on the screen.
3
number = int(input('Informe um número:'))
4
unit = number // 1 % 10
@@ -11,6 +12,7 @@
11
12
print(f'Your thousand is {thousand}.')
13
14
15
+#Separando dígitos de um número
16
# 023: Faça um programa que leia um número de 0 a 9999 e mostre na tela cada um dos dígitos separados.
17
'''numero = int(input('Digite um número qualquer:'))
18
print(f'Analizando o numero {numero}....')
0 commit comments