// program for switch statement
// making a calculator
#include <stdio.h>
int main(){
int a,b ;
char choise;
printf("Enter the two numbers:\n"); printf("Choose Operation:\n For add(+):\nFor Sub(-):\nFor Mult(*)\nFor Div(/)\n"); switch(choise){
case '+':
case '-':
case '*':
case '/':
default:
printf("It's Error! \nEnter again"); }
return 0;
}
Ly8gcHJvZ3JhbSBmb3Igc3dpdGNoIHN0YXRlbWVudAovLyBtYWtpbmcgYSBjYWxjdWxhdG9yCiNpbmNsdWRlIDxzdGRpby5oPgppbnQgbWFpbigpewppbnQgYSxiIDsKY2hhciBjaG9pc2U7CnByaW50ZigiRW50ZXIgdGhlIHR3byBudW1iZXJzOlxuIik7CnNjYW5mKCIlZCAlZCIgLCZhLCZiKTsKcHJpbnRmKCJDaG9vc2UgT3BlcmF0aW9uOlxuIEZvciBhZGQoKyk6XG5Gb3IgU3ViKC0pOlxuRm9yIE11bHQoKilcbkZvciBEaXYoLylcbiIpOwpzY2FuZigiJWMiLCZjaG9pc2UpOwpzd2l0Y2goY2hvaXNlKXsKICAgIGNhc2UgJysnOiAKICAgIHByaW50ZigiYStiPSVkXG4iLChhK2IpKTsKCiAgICAgICAgY2FzZSAnLSc6IAogICAgcHJpbnRmKCJhLWI9JWRcbiIsKGEtYikpOwogICAgCiAgICAgICAgY2FzZSAnKic6IAogICAgcHJpbnRmKCJhKmI9JWRcbiIsKGEqYikpOwoKICAgICAgICBjYXNlICcvJzogCiAgICBwcmludGYoImEvYj0lZFxuIiwoYS9iKSk7CgogICAgICAgIGRlZmF1bHQ6IAogICAgcHJpbnRmKCJJdCdzIEVycm9yISBcbkVudGVyIGFnYWluIik7Cn0KcmV0dXJuIDA7Cn0=