小明为了计算一个底为5高为3的三角形的面积,写出了下面的程序,程序运行的结果为7,他的程序错在哪里?
#include<bits/stdc++.h>
using namespace std;
int main(){
int s=5,h=3;
cout<<s*h/2;
return 0;
}