Posts by Aprendiz • 15 points
6 posts
-
0
votes1
answer5276
viewsQ: How do I use power in C++?
I’m making a simple calculator, and I wanted to add power. I’ve tried to Pow() and did not give, need to add some class?
-
-4
votes2
answers104
viewsQ: Error in "break" in C++ code prevents compilation
Follows code: #include <iostream> using namespace std; int main() { float n1, n2; int s; float resul; cout << "Digite um número para começar" << endl; cin >> n1; cout…
-
0
votes1
answer1324
viewsQ: String with larger and smaller number of characters
I wish to return to the greater and the lesser string. Look at: nl=str(input('Digite uma string')) String=[] string.append(nl) while caractere != 'pare': caractere = str(input("Digite uma letra ou…
-
0
votes1
answer26
viewsQ: Delete the last number I typed
Friends, one more question ( ). Observe the following Code: Numero = int(input('Digite um Numero')) inteiro = [] inteiro.append(Numero) while Numero>0: Numero = int(input('Digite um Numero'))…
-
0
votes2
answers2574
viewsQ: Is there a command to finish the program in Python?
For example, I’m writing a code def soma(): n1=int(input('digite um numero')) n2=int(input('digite outro')) soma = n1+n2 print('A soma de {} e {} é {}'.format(n1,n2,soma)) #começo do programa…
-
1
votes1
answer15660
viewsQ: Python, ascending order of numbers
My goal in the code is to print an increasing order of integers. For example: User type 2 numbers and I want to print the ascending order. Ex.: n1 = int(input('Digite um número')) #O usuário digitou…