im trying to calculate c, alpha and beta, the user should put in a,b and gamma
Type: Posts; User: Lyrockzz
im trying to calculate c, alpha and beta, the user should put in a,b and gamma
#include <stdio.h>#include <math.h>
#include <stdlib.h>
#define TOTAL_DEG (180.0)
double berechnung_length(double a, double b, double gamma, double c)
{
c = sqrt(a * a + b * b - (2 * a...
ye the guideline says "Write a Function (triangle_1) that computes those calculations (prototype is given) void triangle_1 (double a, double b, double gamma, double *c, double *alpha,double *beta);...
It's me again, trying to figure out how to use pointers,
Im supposed to calculate alpha, beta and the lenght of c of a trianlge using a function (triangle_1)
and from what i think i'll have to use...
Thanks, Now i get it, sorry im still figuring out how to properly use functions and everything, helped alot :)
but my type is "double" i dont get the error ^^
we have to use gcc, and i'm supposed to write the function myself ^^
no warnings, but the result is just 0.000
Hi, everything running smooth but there is 1 mistake cuz my output is always 0.00000
The function should basically return the distance between the points
idk whats wrong tho.
Thanks for any...
(the ^ is below the "=" )
this helped alot, still
"error: lvalue required as left operand of assignment
h*b=flaeche;"
^
when my code looks like this
h*b=flaeche;
printf("\nDie Fläche des eingegebenen...
sorry if this seems trivial, but ima beginner, its not really about the Text (its in German due to me studying there :p)
The "program" is should calculate the surface area, the extend and the...