Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string miesiace[12] = {"Styczen", "Luty", "Marzec", "Kwiecień",
- "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień",
- "Październik", "Listopad", "Grudzień"};
- int liczba;
- cin>>liczba;
- if(liczba<1 || liczba > 12)
- {
- return false;
- }
- else
- {
- return miesiace[liczba-1];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement