Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uzduotys;
- public class TreciaUzduotis
- {
- public String rastiMiegoValandas(int amzius)
- {
- if (amzius < 0)
- {
- return "Netinkamas amžius";
- }
- else
- {
- if (amzius < 1)
- {
- return "14";
- }
- else
- {
- if (amzius < 2)
- {
- return "10 + 4";
- }
- else
- {
- if (amzius < 3)
- {
- return "11 + 2";
- }
- else
- {
- if (amzius < 6)
- {
- return "10";
- }
- else
- {
- if (amzius < 14)
- {
- return "9";
- }
- else
- {
- if (amzius < 17)
- {
- return "17";
- }
- else
- {
- if (amzius < 120)
- {
- return "120";
- }
- else
- {
- return "Netinkamas amžius";
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement