India’s Best Job Seekers and Training Platform › Forums › Java Problems set › Given a number N, find the…
Tagged: ApplicationsDeveloper, Java, Yahoo
-
Given a number N, find the…
-
Given a number N, find the smallest even number E such that E > N and digits in N and E are same.
Print NONE otherwise.
Sample:
Input
N = 34722641
Output
E = 34724126
Input
N = 8234961
Output
E = 8236194 (instead of 8236149)
Log in to reply.