有问题吗?
2025-07-31 23:08:01
发布于:广西
42阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
char x;
cin>>x;
if((x=="Y")||(x=="y")){
cout<<"Yes"<<endl;
}
else if((x=="N")||(x=="n")){
cout<<"No"<<endl;
}
return 0;
}
全部评论 3
666
3天前 来自 广东
0#include <iostream>
using namespace std;
int main()
{
char x;
cin>>x;
if(x=='Y'||x=='y')
{
cout<<"Yes"<<endl;
}
else if(x=='N'||x=='n')
{
cout<<"No"<<endl;
}
}3天前 来自 广东
0#include <bits/stdc++.h>
using namespace std;int main()
{
char c;
cin >> c;
if(c 'Y'|| c 'y') cout << "Yes";
else cout << "No";
}2026-03-24 来自 四川
0
















有帮助,赞一个