C Program
C Program
C EXAM
AVERAGE GRADE
80 -100 A
70-79 B
60-69 C
50-59 D
0-49 E
7. A user wants to calculate the area and perimeter of a right angled triangle using a C program.
The user is required to enter the base and height of the rectangle. The hypotenuse of the
rectangle should be calculated after entering the value of the base and height. Find the area and
perimeter of the rectangle.
8. Write a C program to create an array of 5 integers and display the array items. Access individual
elements through indexes.
9. Write a C program to add an item to an array
10. Define a data type and give the different examples of data types and a code to show how to
declare different variables using different data types
11. Write a C program that will allow the user to input the following data name of student,
admission number, age and DOB.
12. Write a C program that will print even number between 0 to 1000 using a loop.