Skip to main content

Q1 — Add Two Numbers

Write a function that takes two integers and returns their sum.

Q2 — Factorial Using Recursion

Calculate the factorial of a number using a recursive function.

Q3 — Check Prime

Check whether a number is prime using a user-defined function.