Raizekas

Untitled

Apr 2nd, 2021
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class PirmaUzduotis
  2. {
  3. public String tikrintiSkaiciu(int x)
  4. {
  5. if (x > 0)
  6. {
  7. if (x % 2 == 0)
  8. {
  9. return "lyginis";
  10. }
  11. else
  12. {
  13. return "nelyginis";
  14. }
  15. }
  16. else
  17. {
  18. return "-1";
  19. }
  20. }
  21. }
  22.  
RAW Paste Data