1 / 6

1) Write a program that calculates the area of a perpendicular triangle

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.

hayley
Download Presentation

1) Write a program that calculates the area of a perpendicular triangle

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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. 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.

  3. 3) Write a program to compute the given function below:

  4. 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; }

  5. 5)What will be the new values of x, y, z?

  6. 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 ….

More Related