#include <stdio.h>

typedef struct {
    int price;
    int count;
    char name[20];
} Convenience;

int main() {

    Convenience std = {1200, 4, "삼각김밥"};

    printf("%s %d개를 사면 %d원입니다",std.name,std.count,std.price * (std.count / 2));

    return 0;
}

Embed on website

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