Raizekas

Untitled

Apr 2nd, 2021
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data