123456789101112
int a, b; a=2; b=3; float x; int main() { x = (float)((a+b)/2); std:cout << x; }
1234567891011
#include <iostream> int main() { int a = 2; int b = 3; float x; x = (float(a + b) / 2); std::cout << x; }