#includeusing namespace std;int main(){int i, k;cout << "请输入一个数字";cin >> i;cout << "请输入一个数字";cin >> k;if (i > k){cout << "最大的数为:" << i << endl;}else {cout << "最大的数为" << k << endl;}return 0;}
把头文件换成C语言的,吧cout换成printf 把cin换成scanf