#define N 5#include<stdio.h>void main(){float score[5],sum=0,ave;int i;printf("Input score");for(i=0;i<5;i++) scanf("%f",&score[i]);for(i=0;i<5;i++) sum+=score[i];ave=sum/5;printf("sum=%4f,average=%4f",sum,ave);}
#define N 40#include<stdio.h>#include<math.h>void main(){int i,j,count=0;static k;int a[N];printf("Input score\n");for(i=0;i<N;i++)scanf("%d",&a[i]);for(i=0;i<N;i++) if(a[i]<60) count++; printf("count=%2d\n",count);k=i; for(i=0;i<N-1;i++){for(j=i;j<N;j++) if(a[k]<a[j...
#include<stdio.h>#include<math.h>void main(){unsigned int i,j,sum=0,flag,count;count=0;for(i=50;i<=1000;i++){flag=0;for(j=2;j<=sqrt(i);j++){if(i%j==0){flag=1;break;}}if(flag==0){sum+=i;count++;}}printf("%4d",sum);printf("%4d",count);}