โ† Tech Mahindra questions

Basic programming problems (Palindrome, Factorial, Prime)

Filed under Tech Mahindra

The question

Write code for a palindrome string, swapping three numbers without a third variable, finding a prime number, computing a factorial, and printing a specific number pattern.

No write-up yet. Related questions below have one.

Related Tech Mahindra questions

Collected from public candidate posts and coding forums. Updated Nov 2026.