#include<stdio.h> int main(void) { int n=0,m=0,q=0,i,grade[10]; printf("Enter grades:"); for(i=0;i<10;i++) scanf("%d",&grade[i]); if(grade==0) return 0; for(i=0;i<10;i++){ if(grade[i]>85) m++; else if(grade[i]>=60) n++; else q++; } printf("m=%d,n=%d,q=%d ",m,n,q); return 0; }