Profile
Javascript
Knowledge
Location
51/71 DUM DUM ROAD,KOL-700074
Contact
+91 9051612094
If-Else Programming Questions
1.WAP to accept any number and check the number is positive or negative.
2.WAP to accept any number and check the number is odd or even.
3.WAP to accept three numbers and find the largest number between them.
4.WAP to accept any number and check the number is BUZZ or not.
5.WAP 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. otherwise HRA=30% of Basic Salary. DA=25% of Basic Salary.
6.WAP to accept three angles of a triangle and check the triangle is valid or not.The triangle is valid if the total of three angles=180 degrees.
7.WAP to accept three sides of a triangle and check the triangle is isosceles,equilateral or scalene.
8.WAP to accept the cost price and selling price of an item and determine the seller has made profit or insecure loss and also determine how much profit he made or loss he insecure.
9.WAP to accept marks of any subject & find their grade from the given condition:
Marks --> grade
>=90 --> A
>=80 and <90 --> B
>=60 and <80 --> C
>=40 and <60 --> D
< 40 --> F
10.WAP to make a calculator using if else or switch case statement.