Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PirmaUzduotis
- {
- public String tikrintiSkaiciu(int x)
- {
- if (x > 0)
- {
- if (x % 2 == 0)
- {
- return "lyginis";
- }
- else
- {
- return "nelyginis";
- }
- }
- else
- {
- return "-1";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment