Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main(){
- int notas[5];
- float promedio=0;
- for(int i =0; i<5; i++){
- cout << "ingrese una nota para " << i+1 << " : ";
- cin>>notas[i];
- promedio +=notas[i];
- }
- promedio /=5;
- cout << "El promedio de las notas es : " << promedio << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement