Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <clocale>
- using namespace std;
- void main() {
- setlocale(LC_ALL, "Russian");
- int RAMPAGGEEEEEE = 0;
- for (int i = 0; i < 18; i++)
- {
- int TripleKill = 0, countKill;
- for (int j = 0; j < 3; j++)
- {
- cout << i + 1 << "-ый студент, предмет № " << j + 1 << ": ";
- cin >> countKill;
- if (countKill == 3) TripleKill++;
- if (countKill == 5) RAMPAGGEEEEEE++;
- }
- cout << "\nУ студента № " << i + 1 << ", " << TripleKill << " троек.\n";
- }
- cout << "Всего пятерок в таблице: " << RAMPAGGEEEEEE;
- cin.get(); cin.get();
- }
Advertisement
Add Comment
Please, Sign In to add comment