Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int x;
- string tab;
- int main()
- {
- cout<<"Ile liter ma imie? ";
- cin>>x;
- for(int i=0; i<x; i++)
- {
- cin>>tab[i];
- }
- if(tab[x-1]=='a')
- {
- cout<<"Imie damskie";
- }
- else
- {
- cout<<"Imie meskie";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement