自学第二十七天1

//#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;
//}


猜你喜欢

转载自blog.51cto.com/15019599/2572809