PROGRAM 16: Write a program to read a number and display its absolute value.
PROGRAM 17: Write a program that reads an integer and determines whether the integer is even or odd.
PROGRAM 18: Write a program that reads a year and determines whether the year is leap or not.
PROGRAM 19: Write a program to input two numbers and print the greater one.
PROGRAM 20: Write a program to calculate the area of triangle, volume of sphere and arrange the resultant values in ascending order.
PROGRAM 21: Write a program to input three numbers and print the greater one.
PROGRAM 22: Write a program to input a character. If this character is in uppercase then convert it into lowercase and vice versa.
PROGRAM 23: Write a program that reads any character from the keyboard and determines whether the entered value is numeric, alphabetic or special.
PROGRAM 24: Write a program in which if cost price and selling price of an item is entered, find whether the seller has made profit or loss. Also find how much profit or loss he has made.
PROGRAM 25: Write a program to calculate gross pay of employees when basic pay is inputted. If the basic pay < 1500, house rent is 70% of basic pay and conveyance allowance is 20% of the basic pay. But if basic pay >= 1500, house rent is 60% of basic pay and conveyance allowance is 10% of the basic pay.
PROGRAM 26: Write a program to input a date and check whether it is valid or not.
PROGRAM 27: Write a program to read the dates of birth of two persons and determine who is younger.

Design a site like this with WordPress.com
Get started