Home
Basic
If-Else
Looping
Search
-- Programmer Analyst --
If-Else/Switch-Case Question for JavaScript
1.Write a program to accept any number and check the number is positive or negative.
2.Write a program to accept any number and check the number is odd or even.
3.Write a program to accept any number and check the number is leap year or not.
4.Write a program accept three number and find the largest number between them.
5.Write a program to accept a number and check the number is buzz or not.
6.Write a program to accept a character and check the character is upper case, lower case, Digit or special symbol or not.
7.Write a program to accept the basic salary of an employee and check the salary is greater then 20000 or not. If the salary is greater then 20000 then find
Hra=20% of basic salary
Da=15% of basic salary
Other wise
Hra=30% of basic salary
Da=25% of basic salary
8.Write a program to accept three angles of a triangle and check the triangle is valid or not. The triangle is valid if the total of three angle = 180 degrees.
9.Write a program to accept three angle of a triangle and check the triangle is isosceles, equilateral, scalene.
10.Write a program to accept marks of any subject & find their grade from the given condition.
11.Write a program to accept a String and check whether it is a vowel or consonant.
12.Write a program to accept a day number from the user and print the corresponding day name.
©2023 Programmer Analyst.All Right Reserved.