#include <stdio.h>

typedef struct {
    int originalPrice;
    float discountRate;
    int result;
} Shopping;

int main() {

    Shopping std = {600000,0.15};
    std.result = std.originalPrice * (1.0 - std.discountRate);
    printf("기존가: %d원, 할인가: %d원",std.originalPrice,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: