Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int x;
  7. string tab;
  8.  
  9. int main()
  10. {
  11. cout<<"Ile liter ma imie? ";
  12. cin>>x;
  13. for(int i=0; i<x; i++)
  14. {
  15. cin>>tab[i];
  16. }
  17. if(tab[x-1]=='a')
  18. {
  19. cout<<"Imie damskie";
  20. }
  21. else
  22. {
  23. cout<<"Imie meskie";
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement