1.Write A Programme to accept any number and checkthe number is positive or
negative.
2.Write A Programme to accept any number and checkthe number is odd or
even. 12.Write A Programme to accept a consonant and check whether it is a vowel or
consonant.
3.Write A Programme to accept any year and check the year is leap year or
not.
4.Write A Programme to accept two numbers and find the largest number between
them.
5.Write A Programme to accept three numbers and find the largest number between
them.
6.Write A Programme to accept any number and check the number is BUZZ or
not.
7.Write A Programme to accept any character and check the character is Upper
Case,Lower Case,Digit,Speacial Symbol or not.
8.Write A Programme to accept the basic salary of an employee and check the salary
is greater
than 20000 or not.If the salary is greater than 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
9.Write A Programme 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.
10.Write A Programme to accept three angle of a triangle and check the trianle is
isosceles,equilateral,scalene.
11.Write A Programme to accept marks of any subject & find their grade from the
given
condition:
Marks
>=90
>=80 and < 90
>=60 and < 80
>=40 and < 60
< 40Grade
A
B
C
D
F
13.Write A Programme to make a calculator using if else or switch case
statement.
14.Write A Programme to accept 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.
15.Write A Programme to accept a day number from the user and print the corresponding day name.