- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
Latest commit
16 lines (14 loc) · 471 Bytes
/
Copy pathexample.py
File metadata and controls
16 lines (14 loc) · 471 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-
# nome = input('Digite seu nome: ')
# print('Prazer em te conhercer {:=^20}'.format(nome))
n1=int(input('Digite um valor: '))
n2=int(input('Digite outro valor: '))
s=n1+n2
m=n1*n2
d=n1/n2
di=n1//n2
su=n1-n2
p=pow(n1, n2)
print('A soma é {},\n o produto é {} e a divisão é {:.3f}'.format(s, m, d), end='')
print('A divisão inteira {} e potência {}'.format(di, p), end=' ')
print('A subtração vale {}'.format(su))