They cover loops, conditions, and data types — without solutions — to help you practice fundamental concepts.
Write a program using a for loop to print numbers from 1 to 10.
Ask the user for a number N and calculate the sum of numbers from 1 to N using a loop.
Create a program that prints the multiplication table of any number entered by the user.
Take a number as input and determine whether it is positive, negative, or zero using if conditions.
Write a program to find the largest among three numbers using conditional statements.
Create an array of numbers and use a for loop to count how many are even and how many are odd.
Take a string input and print its reverse using a for loop.
Write a TypeScript program to find the factorial of a number using a loop.
Check whether a given number is prime or not using a for loop and conditional logic.
Build a small program that takes two numbers and an operator (+, -, *, /) and performs the operation using if-else conditions.
Write a program that prints numbers from 1 to 100, but:
- For multiples of 3, print
"Fizz". - For multiples of 5, print
"Buzz". - For numbers that are multiples of both 3 and 5, print
"FizzBuzz".