Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
GPS reg
#include <math.h> #include <stdio.h> #include <time.h> #include <stdlib.h> int main(void) { double i,a,b,c,hc,q,p,alpha,tmp,StA,StB; a=5; b=52.678; c=50; alpha = acos((( b*b )+( c*c )-( a*a ))/( 2*b*c )); hc = b*sin(alpha); p = sqrt((a*a)-(hc*hc)); q = sqrt((b*b)-(hc*hc)); StA=(100/c)*q; StB=(100/c)*p; tmp = q+p; if(tmp>c){ printf("--[ out of bound ]--\n\n"); } printf("a:\t%f\nb:\t%f\nc:\t%f\n\n",a,b,c); printf("alpha:\t%f\nhc:\t%f\nq:\t%f\np:\t%f\n\nq+p:\t%f\n\n",(alpha*57.2958),hc,q,p,tmp); printf("Log.A:\t%1.2f % \nLog.B:\t%1.2f %\n\n",StA,StB); return 0; }
run
|
edit
|
history
|
help
1
co_assign1_ques_4
C_141210_Punteros
part 3
base
fgets and basic string manipulation
Matrix multiplication. C
int_A_1a.c
pointer1
app1
A_141121_mayorMenor