您的位置:首页 > 其它

自学第二十七天1

2020-12-24 23:08 1126 查看
//#include<stdio.h>
//int main()
//{
//	int a = 0;
//	do
//	{
//		//if (a % 2 != 0)
//		//	printf("%d\n", a);//输出1-100中的奇数
//		//a++;
//		if (a % 2 == 0)
//			printf("%d\n", a);//输出1-100中的偶数
//		a++;
//	} 
//	while (a < 100);
//	return 0;
//}

//#include<stdio.h>
//int main()
//{
//	/*int a = 0;*/
//	int a = 1;
//	do
//	{
//		/*a += 2;
//		printf("%d\n", a);*///输出1-100中的偶数
//		a += 2;
//		printf("%d\n", a);//输出1-100中的奇数
//	} 
//	while (a < 100);
//	return 0;
//}


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: