Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int input;
- char mesi[13][4] = {{'g','e','n','\0'},{'f','e','b','\0'},{'m','a','r','\0'},{'a','p','r','\0'},{'m','a','g','\0'},{'g','i','u','\0'},{'l','u','g','\0'},{'a','g','o','\0'},{'s','e','t','\0'},{'o','t','t','\0'},{'n','o','v','\0'},{'d','i','c','\0'},'\0'};
- cout << "Inserisci il numero di un mese:" << endl;
- cin >> input;
- if (input>0&&input<13)
- cout << mesi[input-1];
- else
- cout << "Il mese specificato non esiste!";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement