60 likes | 164 Views
X. Z. θ. Y. 1) Write a program that calculates the area of a perpendicular triangle Ask the value of hypotenuse and the angle teta from user Use function definition for calculations of the values of other edges of triangle Convert the value of angle teta to radian.
E N D
X Z θ Y 1) Write a program that calculates the area of a perpendicular triangle • Ask the value of hypotenuse and the angle teta from user • Use function definition for calculations of the values of other edges of triangle • Convert the value of angle teta to radian
2) Write a program that calculates the elements of a two dimensional array A by A[i][j] = (i+j)*x where both dimensions and x will be asked from user.
4) Write the program below again by using for loop instead of while #include <stdio.h> int main() { char karakter; karakter=''; printf("Enter a character(enter x to exit):\n"); while(karakter!='x'){ scanf("%c",&karakter); } printf("\nOut of while loop\n"); return 0; }
ALSO DON’T FORGET TO MENTION QUESTIONS LIKE • What does the following program print? • Correct the mistakes in the following code segment (or program). • Write a function ….