#include #include using namespace std; int main() { int i = 10; int j = 20; int temp1; { int a = i; int b = j; temp1 = (a + b) / 2; } int k = temp1; int temp2; { int a = j; int b = 40; temp2 = (a + b) / 2; } cout << temp2 << "\n"; return EXIT_SUCCESS; }