โ† TCS questions
CodingReported in a candidate post, Dec 2020

Write a program for if-else and prime numbers

Filed under TCS

Write a basic program demonstrating the use of if-else conditional statements and another separate program to check whether a given number is prime.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

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