Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int i, j,nota[4][5];
- int calificacion, cont=0, contt = 0,max=0;
- for (i = 0; i < 4; i++)
- {
- cout << "Turno " << i + 1 << endl;
- for (j = 0; j < 5; j++)
- {
- cout << "Operario " << j + 1 << "tDigite la calificacion : ";cin >> nota[i][j];
- if (nota[i][j] >= 6)
- {
- cont++;
- }
- if (cont == 5)
- {
- contt++;
- }
- }
- if (contt > 0)
- {
- max = i+1;
- }
- if (contt > 0)
- {
- nota[i][j] = 0;
- nota[i][j] = max;
- }
- max = 0;
- cont= 0;
- system("cls");
- }
- for (i = 0; i <contt; i++)
- {
- cout << " Turno todas notas aprovativas : " << nota[i][j];
- cout << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement