Created
March 16, 2017 17:25
-
-
Save ninpl/64dc67bf683ea03401c9c61c780e4a00 to your computer and use it in GitHub Desktop.
Promedio de las notas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Practica para refrescar la sintaxis de C++ | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
// Promedio de las notas | |
float nota1,nota2,nota3,promedioFinal; | |
cout<<"Nota 1:"; | |
cin>>nota1; | |
cout<<"Nota 2:"; | |
cin>>nota2; | |
cout<<"Nota 3:"; | |
cin>>nota3; | |
promedioFinal = (nota1+nota2+nota3)/3; | |
cout<<"Promedio final :"<<promedioFinal<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment