如题所述
#include <stdio.h>
int main()
{int i,n=0;
for(i=105;i<300;i+=15)
{printf("%5d",i);
if(++n%5==0)
printf("\n");
}
return 0;
用个for循环
用if判断
主要看你%的运用