#include<stdio.h>
int A, B, choice, Add, minus, multi;
int main() {
printf("Welcome to the program:\n 1. Add\n 2. Minus\n 3. Multiply\n");
printf("Input choice (1-3): ");
if (choice == 1) {
Add = A + B;
}
else if (choice == 2) {
minus = A - B;
}
else if (choice == 3) {
multi = A * B;
}
else {
printf("Error! Please input 1-3 only."); }
printf("\nProgram by Warathip Woraphong M.5/2 No.30");
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBBLCBCLCBjaG9pY2UsIEFkZCwgbWludXMsIG11bHRpOwoKaW50IG1haW4oKSB7CgogICAgcHJpbnRmKCJXZWxjb21lIHRvIHRoZSBwcm9ncmFtOlxuIDEuIEFkZFxuIDIuIE1pbnVzXG4gMy4gTXVsdGlwbHlcbiIpOwoKICAgIHByaW50ZigiSW5wdXQgY2hvaWNlICgxLTMpOiAiKTsKICAgIHNjYW5mKCIlZCIsICZjaG9pY2UpOwoKICAgIGlmIChjaG9pY2UgPT0gMSkgewogICAgICAgIHByaW50ZigiSW5wdXQgQTogIik7CiAgICAgICAgc2NhbmYoIiVkIiwgJkEpOwoKICAgICAgICBwcmludGYoIklucHV0IEI6ICIpOwogICAgICAgIHNjYW5mKCIlZCIsICZCKTsKCiAgICAgICAgQWRkID0gQSArIEI7CiAgICAgICAgcHJpbnRmKCJBICsgQiA9ICVkIiwgQWRkKTsKICAgIH0gCiAgICBlbHNlIGlmIChjaG9pY2UgPT0gMikgewogICAgICAgIHByaW50ZigiSW5wdXQgQTogIik7CiAgICAgICAgc2NhbmYoIiVkIiwgJkEpOwoKICAgICAgICBwcmludGYoIklucHV0IEI6ICIpOwogICAgICAgIHNjYW5mKCIlZCIsICZCKTsKCiAgICAgICAgbWludXMgPSBBIC0gQjsKICAgICAgICBwcmludGYoIkEgLSBCID0gJWQiLCBtaW51cyk7CiAgICB9IAogICAgZWxzZSBpZiAoY2hvaWNlID09IDMpIHsKICAgICAgICBwcmludGYoIklucHV0IEE6ICIpOwogICAgICAgIHNjYW5mKCIlZCIsICZBKTsKCiAgICAgICAgcHJpbnRmKCJJbnB1dCBCOiAiKTsKICAgICAgICBzY2FuZigiJWQiLCAmQik7CgogICAgICAgIG11bHRpID0gQSAqIEI7CiAgICAgICAgcHJpbnRmKCJBICogQiA9ICVkIiwgbXVsdGkpOwogICAgfSAKICAgIGVsc2UgewogICAgICAgIHByaW50ZigiRXJyb3IhIFBsZWFzZSBpbnB1dCAxLTMgb25seS4iKTsKICAgIH0KCiAgICBwcmludGYoIlxuUHJvZ3JhbSBieSBXYXJhdGhpcCBXb3JhcGhvbmcgTS41LzIgTm8uMzAiKTsKICAgIAogICAgcmV0dXJuIDA7Cn0=