Média Aritmética

#include <cstdlib> #include <iostream> using namespace std; int main(){ int nota1, nota2, nota3, media; cout << "Insira a primeira nota! "; cin >> nota1; cout << "Insira a segunda nota! "; cin >> nota2; cout << "Insira a terceira nota! "; cin >> nota3; media = ((nota1+nota2+nota3)/3); cout << "A media aritemetica e " << media << endl; system("PAUSE"); return 0; }

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.