AC答案
查看原帖
AC答案
1447390
liyanru_2128楼主2024/11/26 21:08

以下是代码:

#include <iostream>
using namespace std;

int main() {
	int n;
	cin>>n;
	if(n>0) {
		cout<<"positive";
	} else if(n==0) {
		cout<<"zero";
	} else {
		cout<<"negative";
	}
	return 0;
}

}**

2024/11/26 21:08
加载中...