第二天打卡
![](https://img2023.cnblogs.com/blog/3171372/202304/3171372-20230413220248884-721160705.png)
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 }