#include<stdio.h>
#include<conio.h>
main()
{
char name [50],id[10];
int s1,s2,s3,total;
scanf("%s", &name);
printf("Enter your ID Student: "); scanf("%s", &id);
printf("Enter your Score (50 point):"); scanf("%d",&s1);
printf("Enter your Test (30 point):"); scanf("%d",&s2);
printf("Enter your Affective Score (20 point):"); scanf("%d",&s3);
total-s1+s2+s3;
printf("%s id %s total score %d", name
, id
, total
); if (total<=49)
if(total<-59)
if (total<-69)
if(total<=79)
if (total<=100)
/**/
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8Y29uaW8uaD4KbWFpbigpCnsKICAgIGNoYXIgbmFtZSBbNTBdLGlkWzEwXTsKICAgIGludCBzMSxzMixzMyx0b3RhbDsKICAgIHByaW50ZiAoIkVudGVyIHlvdXIgTmFtZTogIik7CiAgICBzY2FuZigiJXMiLCAmbmFtZSk7CiAgICBwcmludGYoIkVudGVyIHlvdXIgSUQgU3R1ZGVudDogIik7CiAgICBzY2FuZigiJXMiLCAmaWQpOwogICAgcHJpbnRmKCJFbnRlciB5b3VyIFNjb3JlICg1MCBwb2ludCk6Iik7CiAgICBzY2FuZigiJWQiLCZzMSk7CiAgICBwcmludGYoIkVudGVyIHlvdXIgVGVzdCAoMzAgcG9pbnQpOiIpOwogICAgc2NhbmYoIiVkIiwmczIpOwogICAgcHJpbnRmKCJFbnRlciB5b3VyIEFmZmVjdGl2ZSBTY29yZSAoMjAgcG9pbnQpOiIpOwogICAgc2NhbmYoIiVkIiwmczMpOwogICAgdG90YWwtczErczIrczM7CiAgICBwcmludGYoIiVzIGlkICVzIHRvdGFsIHNjb3JlICVkIiwgbmFtZSwgaWQsIHRvdGFsKTsKICAgIGlmICh0b3RhbDw9NDkpCiAgICBwcmludGYoIkdyYWQgMCIpOwogICAgaWYodG90YWw8LTU5KQogICAgcHJpbnRmKCJHcmFkIDEiKTsKICAgIGlmICh0b3RhbDwtNjkpCiAgICBwcmludGYoIkdyYWQgMiIpOwogICAgaWYodG90YWw8PTc5KQogICAgcHJpbnRmKCJHcmFkIDMiKTsKICAgIGlmICh0b3RhbDw9MTAwKQogICAgcHJpbnRmKCJHcmFkIDQiKTsKICAgIC8qKi8KfQ==
#include<stdio.h>
#include<conio.h>
main()
{
char name [50],id[10];
int s1,s2,s3,total;
printf ("Enter your Name: ");
scanf("%s", &name);
printf("Enter your ID Student: ");
scanf("%s", &id);
printf("Enter your Score (50 point):");
scanf("%d",&s1);
printf("Enter your Test (30 point):");
scanf("%d",&s2);
printf("Enter your Affective Score (20 point):");
scanf("%d",&s3);
total-s1+s2+s3;
printf("%s id %s total score %d", name, id, total);
if (total<=49)
printf("Grad 0");
if(total<-59)
printf("Grad 1");
if (total<-69)
printf("Grad 2");
if(total<=79)
printf("Grad 3");
if (total<=100)
printf("Grad 4");
/**/
}