#1791: 答案


1750246-2@g.puiching.edu.mo (P5A09林霆晞)

School : No School
ID : 2944
IP address : [192.168.120.33]
Last Login :
2025-05-15 13:18:29
a594. 負數、零、正數 | From: [192.168.120.33] | Post Date : 2025-03-10 15:28

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a==0){
		cout<<"零";
	}else if(a>0){
		cout<<"正數";
	}else{
		cout<<"負數";
        }
}
 
#1792: Re:答案


1650362-7@g.puiching.edu.mo (余哲嵐P6A09)

School : No School
ID : 2916
IP address : [192.168.120.33]
Last Login :
2025-05-14 16:06:58
a594. 負數、零、正數 | From: [192.168.120.33] | Post Date : 2025-03-11 09:07

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a==0){
		cout<<"零";
	}else if(a>0){
		cout<<"正數";
	}else{
		cout<<"負數";
        }
}


Please stop sending answers...

 
ZeroJudge Forum