DSA SheetLesson · no judge

CODE DRILL 2 · RUN ONLY

Write it, run it, read the output

This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.

TASK

Process n = 1221 from right to left using temp as a working copy. Build the reversed number and compare it with the unchanged original, then print whether 1221 is a palindrome.

Java
Loading editor…

OUTPUT

Sample
1221 is a palindrome

What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.

Previous · Do-While Loop