Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //Kacper Sobczak
  2.  
  3. #include <iostream>
  4. #include <cstdio>
  5. #include <stdlib.h>
  6. #include <conio.h>
  7. #include <iomanip>
  8. #include <time.h>
  9.  
  10. using namespace std;
  11.  
  12. int x;
  13. string tab;
  14.  
  15. void cinn()
  16. {
  17. cin>>tab;
  18. }
  19.  
  20. int main()
  21. {
  22. cinn();
  23. if(tab[tab.length()-1]=='a')
  24. {
  25. cout<<"Imie damskie";
  26. }
  27. else
  28. {
  29. cout<<"Imie meskie";
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement