40分求助!为什么错了!
查看原帖
40分求助!为什么错了!
964708
ABR_Endermoon楼主2023/8/2 09:12
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
	int x;
	cin>>x;
	if(x==1){
		cout<<"Today, I ate 1 apple."<<endl;
	}else if(x==0){
		cout<<"Today, I ate 0 apple."<<endl;
	}else if(x>1){
		cout<<"Today,I ate "<<x<<" apples."<<endl;
	}
}

在本地对比了很多次甚至下载了数据都感觉输出是没错的,可测试后发现错了3个

2023/8/2 09:12
加载中...