#include <stdio.h>
typedef struct {
int totalStone;
int reqStone;
int max;
int remnant;
} Upgrade;
int main() {
Upgrade std = {53,4};
std.max = std.totalStone / std.reqStone;
std.remnant = std.totalStone % std.reqStone;
printf("보유 강화석: %d\n1회 소모석: %d\n최대 가능 강화 횟수: %d\n남은 강화석: %d",std.totalStone,std.reqStone,std.max,std.remnant);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: