Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class AltifLiad {
- public static void main(String[] args) {
- int num=6789;
- System.out.println(Bigger(num));
- }
- public static boolean Bigger(int num)
- {
- if(num<10)
- return (num>5);
- return(num%10>5&&Bigger(num/10));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement