#include<iostream> using namespace std; int main() { int day; cin>>day; switch(day){ case 1: case 2: case 3: case 4: case 5: cout<<"workday.Let's work hard"<<endl; break; case 6: case 7: cout<<"weekend.Let's have a rest"<<endl; break; } return 0; }


#include<iostream> using namespace std; int main(){ int x,y=0; cout<<"enter the number :"; cin>>x; cout<<"the number in reverse order is"; do{ y=y*10+x%10; x=x/10; }while(x!=0); cout<<y<<endl; return 0; }

浙公网安备 33010602011771号