class Output
static void find
int n=1234, d ,s=0,c=0;
while(n!=0)
d=n%10;
s=s+d*(int)Math.pow(10,c++);
n=n/10;
}
System.out.println (s);
}
}
Answers
Answered by
2
Answer:
The given code has errors. The starting bracket are not there. So, the code won't compile.
Similar questions