Martix工作室考核题 —— 输出1000以内能被3整除,且个位数为6的所有整数。

代码

#include <stdio.h>
int main (void)
{
	const int three = 3;
	int num;
	int SIX;
	
	for (num = 2;num < 333;num+=10)
	{
		printf("%5d \n",three*num);
	}
	getchar();
	return 0;
 }  
posted @ 2019-03-17 22:22  AlexKing007  阅读(338)  评论(0编辑  收藏  举报