I'm trying to calculate the area of the triangle, but keep getting area = 0
I’m trying to calculate the area, but keep getting 0. What am I doing wrong? 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 int area, base, height; 6 7 area = (1/2)*base*height; 8 9 cout << "Enter the base: "; 10 cin >> base; 11 12 cout << "Enter the… Read More I'm trying to calculate the area of the triangle, but keep getting area = 0