Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class AltifLiad {
  3.  
  4.     public static void main(String[] args) {
  5.         int num=6789;
  6.         System.out.println(Bigger(num));
  7.     }
  8.     public static boolean Bigger(int num)
  9.     {
  10.         if(num<10)
  11.             return (num>5);
  12.        
  13.         return(num%10>5&&Bigger(num/10));
  14.    
  15.        
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement