Computer Science, asked by gamingwithbangalboy, 1 month ago

Write a program in java to accept and check whether it is a python number or not. Example 3975 is a phyton number.​

Answers

Answered by asawarigade692
1

Answer:

what is meant a python number

Answered by shilpa85475
0

prime number is the number when divided by any number gives the remainder as 0.

Explanation:

import java.util.*;

public class abc

{

    public static void main(String[] args)

{

 Scanner in = new Scanner(System.in);

 System.out.print("Input a number: ");

    int n = in.nextInt();  

           if (n % 2 == 0) {

               System.out.println(1);  

              }

  else {

               System.out.println(0);  

             }

    }

}

Similar questions