JSRUN
#include <iostream> using namespace std; int main() { int day; cout<<"请回答一周有几天:"; cin>>day; cout<<"您的回答是一周有"<<day; return 0; if (day = 7) { cout<<"回答正确"<<endl; } }
使用此草稿 删除草稿
#include <iostream> using namespace std;
int main() { int day; cout<<"请回答一周有几天:"; cin>>day; cout<<"您的回答是一周有"<<day; return 0; if (day = 7) { cout<<"回答正确"<<endl; } }