Advertisement
Raizekas

Untitled

Apr 2nd, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class AntraUzduotis
  2. {
  3. String[] skaiciaiStr = {"nulis", "vienas", "du", "trys", "keturi", "penki", "šeši", "septyni", "aštuoni", "devyni", "dešimt"};
  4.  
  5. public String keistiSkaiciu(int x)
  6. {
  7. if ((x >= 0) && (x < 10))
  8. {
  9. return skaiciaiStr[x];
  10.  
  11. }
  12. else
  13. {
  14. return "netinkamas skaičius";
  15. }
  16. }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement