[求助]解决一下字符统计程序,我运行过多次但结果为NTVDM CPU遇到无效指令。
											#include<stdio.h>
  void main()
  {
  char c;
  int nletters=0, nspace=0, ndigit=0,nother=0;
  printf("input c");
  scanf("%s",&c) ;
if(c>='A'&&c<='Z'||c>='a'&&c<='z')
  nletters++;
  else if (c==' ')
  nspace++;
  else if(c>='0'&&c<='9')
  ndigit++;
  else
  nother++;
  printf("%d,%d,%d,%d\n ",nletters,nspace,ndigit,nother);
  }

 
											





 
	    


