josiftepe

Untitled

Nov 1st, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4. // imam niza od studenti, i sakam za sekoj student da gi ispecatam rednite broevi na denovite od nedelata vo koi treba da odi na fakultet
  5. // Pero 1
  6. // Pero 2
  7. // Pero 3
  8. // Pero 4
  9. // Pero 5
  10. // Stefan 1
  11. // .
  12. // .
  13. // .
  14. // .
  15. int main()
  16. {
  17.     string niza[4] = {"Pero", "Stefan", "Josif", "Bodan"};
  18.    
  19.     for(int i = 0; i < 4; i += 1) {
  20.         for(int j = 1; j <= 5; j += 1) {
  21.             cout << niza[i] << " " << j << endl;
  22.         }
  23.     }
  24.  
  25.     return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment