Week 1: Friday -------------- Q1. (40) Input two perpendicular sides of a right-angled triangle and calculate the area(using them) and hypotenuse. Print them. Next, calculate the distance of the right angled vertex from the hypotenuse, using the equation of the hypotenuse (not the value calculated earlier). This is the height. Print the height. Now calculate the area of the triangle again using the height and hypotenuse. Print this area also. Check whether both areas are same ? If yes, why, if no why? Mention the reason as comment in your program. For the above program, you will require to use square roots. Insert the following line together with the rest of the program as shown below. #include #include int main() { ... ... } Now you can calculate square root as follows: double x = 1234321; double result = sqrt(x); You have to compile your program using gcc -lm For example, if your file is x.c, you have to run gcc -lm x.c and then run a.out Q2. (60) Write a program to input a character. Print its ASCII value in reverse. For example, if the character is 'a', the ASCII value is 97. Print the reverse of 97, i.e., 79 as output.