C Digit Integer Pertama

int x = 123;

while (x >= 10)
{
	x = x / 10;
}
sudoCompetence