Soma Simples

#include <cstdlib> #include <iostream> using namespace std; int main() { int x, y; cout << "Digite o primeiro Numero! "; cin >> x; cout << "Digite o segundo Numero! "; cin >> y; cout << "\nResultado é: " << (x + y) << endl; if(x+y>0) cout << "A soma dá um resultado Positivo!" << endl; else if ( x + y == 0 ) cout << "A soma dá um resultado Neutro!" << endl; else cout << "A soma dá um resultado negativo!" << endl; return EXIT_SUCCESS; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.