第二天打卡

 1 #include<iostream>
 2 using namespace std;
 3 int main()
 4 {
 5     char a,N,Y;
 6     while(1){
 7 
 8     cout<<"现在正在下雨吗?"<<endl;
 9     cout<<"请输入N或Y:";
10     cin>>a;
11     if(a=='Y')
12     {
13     
14         cout<<"现在正在下雨"<<endl;
15     break;
16     }
17      if(a=='N')
18         {cout<<"现在没有下雨"<<endl;
19      break;
20     }
21     }
22     return 0;
23 }

 

posted @ 2023-04-13 22:03  Code13  阅读(10)  评论(0编辑  收藏  举报