Skip to content

aravindanath/Assignment_TypeScript_LevelOne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Assignment_TypeScript_LevelOne

🧠 TypeScript Beginner Exercises

They cover loops, conditions, and data types — without solutions — to help you practice fundamental concepts.


1. Print Numbers from 1 to 10

Write a program using a for loop to print numbers from 1 to 10.


2. Sum of First N Natural Numbers

Ask the user for a number N and calculate the sum of numbers from 1 to N using a loop.


3. Multiplication Table

Create a program that prints the multiplication table of any number entered by the user.


4. Check Positive, Negative, or Zero

Take a number as input and determine whether it is positive, negative, or zero using if conditions.


5. Find the Largest of Three Numbers

Write a program to find the largest among three numbers using conditional statements.


6. Count Even and Odd Numbers

Create an array of numbers and use a for loop to count how many are even and how many are odd.


7. Reverse a String

Take a string input and print its reverse using a for loop.


8. Factorial of a Number

Write a TypeScript program to find the factorial of a number using a loop.


9. Check Prime Number

Check whether a given number is prime or not using a for loop and conditional logic.


10. Simple Calculator

Build a small program that takes two numbers and an operator (+, -, *, /) and performs the operation using if-else conditions.


11. FizzBuzz

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".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published