1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream> using namespace std; int main(void) { int n1 = 3; int n2 = 2; float res = (float)(n1 + n2) / 2; cout << res << endl; cin.get(); return 0; }
1
2.5