#include <stdio.h>
typedef struct {
char name[20];
int drinkPrice;
int orderCount;
int result;
} Cafe;
int main() {
Cafe std = {"초코라떼",4500,6};
std.result = std.drinkPrice * std.orderCount;
printf("%s %d잔 가격은 %d입니다",std.name,std.orderCount,std.result);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: