Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- // 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
- // Pero 1
- // Pero 2
- // Pero 3
- // Pero 4
- // Pero 5
- // Stefan 1
- // .
- // .
- // .
- // .
- int main()
- {
- string niza[4] = {"Pero", "Stefan", "Josif", "Bodan"};
- for(int i = 0; i < 4; i += 1) {
- for(int j = 1; j <= 5; j += 1) {
- cout << niza[i] << " " << j << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment