Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main
- {
- public static void main (String[]args)
- {
- Scanner scanner = new Scanner (System.in);
- System.out.println("الرجاء ادخال الرقم:");
- int number = scanner.nextInt();
- if (number % 3 == 0) {
- System.out.println("هذا الرقم يقبل القسمه على 3");
- } else {
- System.out.println("هذا الرقم لا يقبل القسمه على 3");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment