Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<conio.h>
- using namespace std;
- int main() {
- float VectorA[4][5];
- float sumames;
- cout << endl;
- for (int i = 0; i < 4; i++)
- {
- cout << "***----Registro de la semana " << i + 1 << "----***" << endl;
- for (int j = 0; j < 7; j++)
- {
- cout << "Ingrese el valor total del dia " << j + 1 << " de la semana " << i + 1 << " :" << endl;
- cin >> VectorA[i][j];
- }
- }
- for (int i = 0; i < 4; i++)
- {
- float suma = 0;
- for (int j = 0; j < 7; j++)
- {
- suma = suma + VectorA[i][j];
- }
- cout << "La suma de la semana" << i + 1 << "es: " << suma << endl;
- sumames = sumames + suma;
- }
- cout << "El valor mensual es: " << sumames;
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement