describe
Input the scores of three subjects, and then output the scores of the three subjects in the form of integers.
Data range: 0 \le n \le 100 \0≤n≤100
Enter description:
One line, 3 subject scores, separated by spaces, range (0~100).
Output description:
One line displays the results of 3 subjects. For details on the output format, see the output example.
Example 1
enter:
60 80 90
Output:
score1=60,score2=80,score3=90
Directly upload the code
#include <stdio.h>
int main()
{
int a=0,b=0,c=0;
scanf("%d %d %d",&a,&b,&c);
printf("score1=%d,score2=%d,score3=%d",a,b,c);
return 0;
}
I would like to point out that the output examples are score1, 2, 3...=%d