اتمنى احد يعطيني الجواب حق السؤالين هذي لأني حاولت وما قدرت وضروري لأن الموعد غدا
الصباح .
___
Exercises in class
Write a program using two functions, one to calculate the hypotenuse (H)
and the another to calculate hypotenuse and area of a triangle
Hint:
i. Hypotenuse = sqrt(pow(a,2)+ pow(b,2)) ( < math.h>)
ii. Area = (a * b)/2
____
Type the following program and fill the missing words carefully . Compile and run. Save As: Lab5_math.c
#include <stdio.h>
#include <math.h>
int main(void)
{
double x, y , z, v;
printf("Enter the number : \n");
scanf("%.." , ...);
y = pow(sin(x),2);
z = pow(cos(x),2);
v = y + z;
printf("……………………………………………..is=%.. \n",..);
return (0);
}
Finally ,Write the equation of "v " using insert equation in Microsoft Word .