this is my function

double area (int side_a, int side_b, int side_c)
{

	double semi;
	double area_ans;

	semi = semi_peri (side_a, side_b, side_c);

	area_ans = (sqrt(semi * (semi - side_a)(semi - side_b) (semi- side_c)));

	return area_ans;
}


double semi_peri (int side_a, int side_b, int side_c)
{
	double semi_ans;

	semi_ans = (side_a + side_b + side_c) / 2;


	return semi_ans;
}

my compiler is giving me a error at the red part of my code.
the error is error C2064: term does not evaluate to a function taking 1 arguments.
please help me

Yes. Between your close and open parenthesis there should be some type of operator like a * or a +

maybe like:

area_ans = (
		sqrt(
			semi * (semi - side_a)+(semi - side_b)+(semi- side_c)
				)
		
		);

cool thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.