
Help with code
Need to write a program that will read in 3 positive double values as the three sides of a triangle. echo the input and then output the perimeter and area of that triangle.
Formula for computing the area of a triangle is given (must include math.h):
area = sqrt( s * (s  a) * (s  b) * (s  c) )

What sort of help?
Reading in some values?
Printing values?
Doing a calculation  well you almost have that, all it needs is a ; at the end.

i need to make that information into a code so i can get an output for it.

Yes, but what do you KNOW already?
Code:
int main ( ) {
printf("hello world\n");
}
int main ( ) {
int numCabbages;
printf("How many cabbages do you have?\n");
scanf("%d", &numCabbages);
}
And so on.
The second is basically halfway to your answer anyway.
That is, doing the "question and answer" code to allow the user to type in the parameter values for your function.
If you're not willing to make a stab at inputting values for s,a,b,c then you should probably drop the course.