int x = 13623611, max=0;
for (; x; x /= 10) if (x % 10 > max) max = x % 10;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
int x = 13623611, max=0;
for (; x; x /= 10) if (x % 10 > max) max = x % 10;