Home >Backend Development >C#.Net Tutorial >C language implements automatic line wrapping when outputting 5 numbers
The method is as follows:
...... n++ if(n%5==0&&n!=0) //因为当n=0时,n%5,的值也是0,就也会转行,为了防止这种情况的发生,就用了&& printf("\n");
Recommended tutorial: c language tutorial
The above is the detailed content of C language implements automatic line wrapping when outputting 5 numbers. For more information, please follow other related articles on the PHP Chinese website!