#include<stdio.h>
#include<stdlib.h>
int main(void) {
int a,q,w,e,r;
printf("안녕하세요 계산기 프로그램입니다\n"); printf("우선 1더하기 2빼기 3곱하기 4나누기\n "); switch(a) {
case 1: printf("처음숫자를입력해주세요\n"); e=q+w;
printf("%d+%d=%d입니다\n",q
,w
,e
); return 0;
case 2: printf("처음숫자를 입력해주세요\n"); e=q-w;
printf("%d-%d=%d입니다\n",q
,w
,e
); return 0;
case 3: printf("처음숫자를 입력해주세요\n"); e=q*w;
printf("%d X %d =%d입니다\n",q
,w
,e
); return 0;
case 4: printf("처음숫자를입력해주세요\n"); e=q/w;
return 0;
}
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CgoKaW50IG1haW4odm9pZCkgewoKaW50IGEscSx3LGUscjsKcHJpbnRmKCLslYjrhZXtlZjshLjsmpQg6rOE7IKw6riwIO2UhOuhnOq3uOueqOyeheuLiOuLpFxuIik7CnByaW50Zigi7Jqw7ISgIDHrjZTtlZjquLAgMuu5vOq4sCAz6rOx7ZWY6riwIDTrgpjriITquLBcbiAgIik7CnNjYW5mKCIlZFxuXGEiLCZhKTsKcHJpbnRmKCLsnoXroKXtlZjsi6DsiKvsnpDripQgJWTsnoXri4jri6RcbiIsYSk7CiBzd2l0Y2goYSkgewogCWNhc2UgMTogcHJpbnRmKCLsspjsnYzsiKvsnpDrpbzsnoXroKXtlbTso7zshLjsmpRcbiIpOwoJICAgICAgICBzY2FuZigiJWRcbiIsJnEpOwogCSAgICAgICAgcHJpbnRmKCLsspjsnYzsiKvsnpDripQgJWTsnoXri4jri6RcbiIscSk7CiAJICAgICAgICBwcmludGYoIuuNlO2VoOyIq+yekOulvCDsnoXroKXtlbTso7zshLjsmpRcbiIpOwogCSAgICAgICAgc2NhbmYoIiVkIiwmdyk7CiAJICAgICAgICBwcmludGYoIuuNlO2VnOyIq+yekOuKlCVk7J6F64uI64ukXG4iLHcpOwogCSAgICAgICAgZT1xK3c7CiAJICAgICAgICBwcmludGYoIiVkKyVkPSVk7J6F64uI64ukXG4iLHEsdyxlKTsKIAkgICAgICAgIHJldHVybiAwOwoJIGNhc2UgMjogcHJpbnRmKCLsspjsnYzsiKvsnpDrpbwg7J6F66Cl7ZW07KO87IS47JqUXG4iKTsKCSAgICAgICAgc2NhbmYoIiVkXG4iLCZxKTsKCSAgICAgICAgcHJpbnRmKCLsspjsnYzsiKvsnpDripQlZOyeheuLiOuLpFxuIixxKTsKCSAgICAgICAgcHJpbnRmKCLruoTsiKvsnpDrpbzsnoXroKXtlbTso7zshLjsmpRcbiIpOwoJICAgICAgICBzY2FuZigiJWQiLCZ3KTsKCSAgICAgICAgcHJpbnRmKCLruoTsiKvsnpDripQlZOyeheuLiOuLpFxuIix3KTsKCSAgICAgICAgZT1xLXc7CgkgICAgICAgIHByaW50ZigiJWQtJWQ9JWTsnoXri4jri6RcbiIscSx3LGUpOwoJICAgICAgICByZXR1cm4gMDsKCSAgY2FzZSAzOiBwcmludGYoIuyymOydjOyIq+yekOulvCDsnoXroKXtlbTso7zshLjsmpRcbiIpOwoJICAgICAgICAgIHNjYW5mKCIlZFxuIiwmcSk7CgkJCSAgcHJpbnRmKCLsspjsnYzsiKvsnpDripQlZOyeheuLiOuLpFxuIixxKTsKCQkJICBwcmludGYoIuqzse2VoOyIq+yekOulvOyeheugpe2VtOyjvOyEuOyalFxuIik7CgkJCSAgc2NhbmYoIiVkXG4iLCZ3KTsKCQkJICBwcmludGYoIuqzse2VoOyIq+yekOuKlCVk7J6F64uI64ukXG4iLHcpOwoJCQkgIGU9cSp3OwoJCQkgIHByaW50ZigiJWQgWCAlZCA9JWTsnoXri4jri6RcbiIscSx3LGUpOwoJCQkgIHJldHVybiAwOyAKCQljYXNlIDQ6IHByaW50Zigi7LKY7J2M7Iir7J6Q66W87J6F66Cl7ZW07KO87IS47JqUXG4iKTsKCQkgICAgICAgIHNjYW5mKCIlZFxuIiwmcSk7CgkJICAgICAgICBwcmludGYoIuyymOydjOyIq+yekOuKlCVk7J6F64uI64ukXG4iLHEpOwoJCSAgICAgICAgcHJpbnRmKCLrgpjriIzsiKvsnpDrpbzsnoXroKXtlbTso7zshLjsmpRcbiIpOwoJCSAgICAgICAgc2NhbmYoIiVkXG4iLHcpOwoJCSAgICAgICAgcHJpbnRmKCLrgpjriIzsiKvsnpDripQlZOyeheuLiOuLpFxuIix3KTsKCQkgICAgICAgIGU9cS93OwoJCSAgICAgICAgcHJpbnRmKCIlZC8lZCA9ICVkXG4iLHEsdyxlKTsKCQkgICAgICAgIHJldHVybiAwOwogfQoKCgoKfQ==