Computer Science, asked by bhaiashu, 1 year ago

wap to print the maximum digit preaent in the no.[related to java]

Answers

Answered by smartarwaz
0
laskrhdjksjsjftjsmrrmd
Answered by UnknownDude
0
n is the number by user
int max=0;
while(n>0)
{
int rem=n%10;
if(rem>max)
max=rem;
n/=10;
}
The max digit will be in max
Similar questions