while
#include<stdio.h> int main() { int n =0,j=0,s=0; scanf("%d",&n); while(n) { if(n%2==0) ++s; else ++j; --n; } printf("%d %d",j,s); return 0; }
#include<stdio.h> int main() { int n =0,j=0,s=0; scanf("%d",&n); while(n) { if(n%2==0) ++s; else ++j; --n; } printf("%d %d",j,s); return 0; }