Computer Science, asked by pranavomesh, 5 months ago


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 deepakkumar9254
2

Answer:

The given code has errors. The starting bracket are not there. So, the code won't compile.

Similar questions