Write a Program in Java to input a number and check whether it is a Disarium Number or not.
Answers
Answered by
3
Answer:
import java. util.*;
public class MyClass {
public static void main(String args[]) {
int n,a,d,s=0,cnt=0;
Scanner sc=new Scanner(System. in);
System. out. println("Enter the number to check whether it is a Disarium number or not:");
n=sc. nextInt();
a=n;
this help you
Similar questions