程序片段: int a = 6, b = 6, c = 2; int mx = a; if (b > mx) mx = b; if (c > mx) mx = c; cout << mx; 输出是什么? A. 2 B. 8 C. 6 D. 12