求助!(0分)
查看原帖
求助!(0分)
575863
yuxuanctgzs楼主2022/8/15 19:59
#include<iostream>
using namespace std;
int main()
{
    int x;
    cin>>x;
    if(x==0)cout<<"Today,I ate 0 apple.";
    else
    {
        if(x==1)cout<<"Today,I ate 1 apple";
        else
        ;if(x>1)cout<<"Today,I ate"<<" "<<x<<" "<<"apples.";
    }
}

2022/8/15 19:59
加载中...