Write a java program to check whether given number is binary or not using arrays
Answers
Answered by
0
class binary
{
public static void main(int a)
{
If (a <=1)
System.out.println("The number is a binary number");
else
System.out.println("The number is not a binary number");
}
}
{
public static void main(int a)
{
If (a <=1)
System.out.println("The number is a binary number");
else
System.out.println("The number is not a binary number");
}
}
Similar questions