慕桂英4014372
#include"stdio.h"int main(){int a,i;printf("请输入一个正整数\n");scanf("%d",&a);if(a%2==0){printf("偶数:\n");for(i=0;i<=a/2;i )printf("]",2*i);printf("\n");printf("奇数:\n");for(i=1;i<a/2;i )printf("]",2*i-1);}else{printf("偶数:\n");for(i=0;i<=(a-1)/2;i )printf("]",2*i);printf("\n");printf("奇数:\n");for(i=0;i<(a-1)/2;i )printf("]",2*i 1);}return 0;}