#include "stdio.h"
int main(){
int Dat[7];
int m, k;
Dat[0] = 12; Dat[1] = 14;
Dat[2] = 13; Dat[3] = 15;
Dat[4] = 15; Dat[5] = 12;
Dat[6] = 16;
m = 0;
for(int k = 0; k < 7; k++){
if(Dat[k] > 14) m++;
}
printf("%d",m);
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include "stdio.h"
int main(){
int Dat[7];
int m, k;
Dat[0] = 12; Dat[1] = 14;
Dat[2] = 13; Dat[3] = 15;
Dat[4] = 15; Dat[5] = 12;
Dat[6] = 16;
m = 0;
for(int k = 0; k < 7; k++){
if(Dat[k] > 14) m++;
}
printf("%d",m);
return 0;
}