1. the program currently does the following:
- prompt the user for the side lengths
- prompt the user whether whe wants to solve another problem
- do a loop to repeatedly caluclate and print the result
- do a loop to repeatedly tell the user 'bye'
Apart from the compiler errors. you have to ask yourself: is that what I want the program to do?
2. The first compiler error refers to the printf statement. You should therefore look up the definition of printf, and it's format specifiers, e. g. here:
printf - C++ Reference[
^] . If you read that, you'll find that %f tells printf to print a float value, whereas the additional 'l' is a length modifier. However, that length modifier only applies to int, not float.
3. Unlike scanf, printf does not expect a pointer to a variable. You should just pass values or a variable holding the value. If you follow the link above, you'll find example code at the bottom of the page.
4. The while statement at the end of the do loop doesn't make any sense:
while (char == 'Y')
:
char
is a type, not a variable or value.
5. The while statement in the second do loop has the same issue. Of course, both loops don't make sense to start with (see 1.)
6. Rick already pointed out your error regarding the multiplications.
7. The local variable areaTriangle you are using to store the result of the calculation was never defined! You have to define variables before you use them. Also it's a very bad idea to name a variable exactly like a function! While the compiler is able to discern the two, it can be very confusing to read, and there's a large risk to use them inappropriately.