每5个输出换一行代码怎么写?[解决办法]
#include <iostream>using namespace std;int main(){ for( int i = 0; i < 20; ++i ) { cout << i; if( i > 0 && (i+1) % 5 == 0 ) cout << endl; else cout << "\t"; } return 0;}