Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
GPS Logger || how much %
#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
NO OF NODES IN LINK LIST
Array non repeated alphabets
fibonacci2
22nd HW Switchv0.24
time clock and day count through second by user input (ratneshgujarathi)
print name
Lab 7 blackjack v0.9
2.1.2 Sum of all the elements in a one dimensional array A using reduction.
domain.com
Command Expressions in Gnu C: What Does Return Return?