#include <iostream> 名前空間stdを使用; int main() { int i; for(i = 1; i <21; i ++) { cout << i << ''; // ''中有1个空格 if(i%2 == 0)cout << "″鵺"; if(i%3 == 0)cout << "当当"; if(i%2 == 0 || i%3 == 0)cout << endl; } 0を返します。 }
#include <iostream> 名前空間stdを使用; int main() { int i; for(i = 1; i <21; i ++) { cout << i << ''; // ''中有1个空格 if(i%2 == 0)cout << "″鵺"; if(i%3 == 0)cout << "当当"; if(i%2 == 0 || i%3 == 0)cout << endl; } 0を返します。 }