一键清除多余空格、注释和空行,让您的代码更加简洁高效
for (int i = 1; i <= n; i ++) { // 输出结果 cout << "Hello, world! i = " << i << endl; /* 输出格式: i: 索引值 */ if (i % 5 == 0) { cout << "Multiple of 5: " << i << endl; } }
for(int i=1;i<=n;i++){ cout<<"Hello, world! i = "<<i<<endl; if(i%5==0){ cout<<"Multiple of 5: "<<i<<endl; } }