#include <stdio.h>
Struct person{
int total_score;
int 3_score;
int 2_score;
};
int main() {
struct person candidate[3];
for(int i=0; i<3; i++){
scanf("%d", &num);
candidate[i].total_score+= num;
if(num==3)
candidate[i].3_score+=1;
if(num==2)
candidate[i].2_score+=1;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: