#include <stdio.h>

typedef struct {
    int perfectScore;
    float penalty;
    float result;
} Performance;

int main() {

    Performance std = {50,4.5};
    std.result = std.perfectScore - std.penalty;
    printf("기본 만점: %d\n감점 총합: %.1f\n최종 점수: %.1f",std.perfectScore,std.penalty,std.result);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: