1 2 3 4 5 6 7 8 9 10 |
public class divisibility { public static void main(int a, int b) { if(a%b==0) System.out.println("The number is divisible"); else System.out.println("The number is not divisible"); } } |
Leave a Reply
You must be logged in to post a comment.