write a program in JAVA to input numbers of digits and check digit is magic or not
Answers
Answered by
1
Answer:
Java program on guessing game
Explanation:
V. Java Programming:
1. The time period of a Simple Pendulum is given by the formula:
1
T = 271
Answered by
4
Answer:
import java.util.Scanner;
class MagicNum
{
public static void main()
{
Scanner in=new Scanner(System.in);
int n;
System.out.println("Enter a number");
n=in.nextInt();
if(n%9==1)
System.out.println("Magic Number");
else
System.out.println("Not a Magic Number");
}
}
Explanation:
Similar questions