奇偶统计
#include<stdio.h>
int main()
{
int N;
scanf("%d",&N);
int j=1;
int i=0;
while(j<=N)
{
if(0==j%2)
{
i++;
}
j++;
}
printf("%d %d",N-i,i);
return 0;
}
#include<stdio.h>
int main()
{
int N;
scanf("%d",&N);
int j=1;
int i=0;
while(j<=N)
{
if(0==j%2)
{
i++;
}
j++;
}
printf("%d %d",N-i,i);
return 0;
}