We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f7a82e commit 568c4deCopy full SHA for 568c4de
1 file changed
Magic_number.java
@@ -12,6 +12,7 @@ public static void main(String ar[])
12
int n,v,t,d=0,s;
13
System.out.println("Enter the number");
14
n=Integer.parseInt(br.readLine());
15
+ //implementing the Algorithm
16
for(v=n;v>9;v=s){
17
for(t=v,s=0;t>0;t=t/10) {
18
d=t%10;
0 commit comments