Raizekas

Untitled

Apr 1st, 2021
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package uzduotys;
  2.  
  3. public class PirmaUzduotis
  4. {
  5.  
  6. public static int patikrintiSkaiciu(int x)
  7. {
  8. if (x >= 0)
  9. {
  10. if (x >= 100)
  11. {
  12. return 1;
  13. }
  14. else
  15. {
  16. return 0;
  17. }
  18. }
  19. else
  20. {
  21. return -1;
  22. }
  23. }
  24. }
  25.  
RAW Paste Data