Can someone help me in c++?

I need help with my assignment
1.Write a C++ program that will calculate the result of (a+b)/2, use the right mathematical operator and correct datatypes.

2.Write a C++ program that will calculate the result of a+b*c/d, use the right mathematical operator and correct datatypes.
6 answers 6