genius!! ,your right , thank you!!!!!
now that i know the problem i think i will do this from now on
#include<stdio.h>
#include<math.h>
float my_func(float A, float B, float C)
{
Type: Posts; User: Niz
genius!! ,your right , thank you!!!!!
now that i know the problem i think i will do this from now on
#include<stdio.h>
#include<math.h>
float my_func(float A, float B, float C)
{
vart you told me that putting my_func() would work but it does not!
ive had to use my_func(A, B, C) but does not work when the program is running says theres an error and the error is as before...
thanks yeh it does work and so did my old code theres was something wrong with the software/compiler it actually crashed on me just now. Now I restarted it and now the old and your new code (the...
yeh im just working on using functions im just practising but even your method returns no value i get 0 as the area
#include<stdio.h>
#include<math.h>
main()
{
float a,b,c,s,area;...
well i dont know about unsigned ive only learnt about signed but the range of signed is -+32,768 for int
you should use float.
but it says 3 arguments are required and if i put in
my_func(float A, float B, float C)
it says float found where operator expected
so here it is so far, pls bear with me im trying
...
i know that bit i just dont know what to put in the main body?
printf("Area = %f\n",/*HERE*/);
normally it would be just my_func() but that wouldnt work in this situation.
im trying!, how can i return the statement? i only know how to return a statement if it involves 1 calculation.
#include<stdio.h>
#include<math.h>
void my_func(float *R, float A, float B,...
ok i changed it but now the problem is within the compiling
#include<stdio.h>
#include<math.h>
void my_func(float *R, float P, float A, float B, float C)
{
P = ((A+B+C)/2);
*R =...
simply finding the area of a triangle this is how i want to do it and the compiler says its all good to go but it fails after i enter the three values, and says the problems in the lines shown in an...
ok no worries ive sorted it out, for future browsers heres the solution :) simple short and sweet.
#include<stdio.h>
#include<math.h>
void my_func(float ang,float* r, float* s, float* c,...
Salem i don't understand what problem you are solving? but im guessing its, not using global variables, i tried it and the compiler says 'my_func' requires no argument, i take it its to do with the...
maybe i just need to understand pointers better but i just cant understand the point of pointers, they examples given are so simple there's no need for them, here's what i have done without pointers,...
i need to create a function that will convert an user input angle into all three sin cos and tan and display, i can do this without pointers and creating separate functions for each sin cos tan, but...