flow of control
[SET – 1]
1 
Any integer is input by the user. Write a program to find out whether it is an odd number or even number. solution 

2 
Find the absolute value of a number entered by the user. solution 

3 
Write a program to calculate the total expenses. Quantity and price per item are input by the user and discount of 10% is offered if the expense is more than 5000. solution 

4 
Write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred. Cost price and selling price of an item is input by the user. solution 

5 
If the ages of Ram, Sulabh and Ajay are input by the user, write a program to determine the youngest of the three. solution 

6 
Write a program to check whether a triangle is valid or not, when the three angles of the triangle are entered by the user. A triangle is valid if the sum of all the three angles is equal to 180 degrees. solution 

7 
Any year is input by the user. Write a program to determine whether the year is a leap year or not. solution 

8 
In a company an employee is paid as under:


9 
Write a program to calculate the monthly telephone bills as per the following rule:


10 
Write a program to find the roots of and quadratic equation of type ax2+bx+c where a is not equal to zero. solution 

11 
The marks obtained by a student in 5 different subjects are input by the user. The student gets a division as per the following rules: 

12 
Any character is entered by the user; write a program to determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol. The following table shows the range of ASCII values for various characters.
