int x,y;
char cal_operator;
char inexit[5];
////// ⺯ κ.//////
printf("\n Welcome to the calculator. \n");
while(1)
{
printf("If you want to exit this function input 'exit'. \n");
printf("Continue: press any key and enter. \n");
fflush(stdin);
scanf("%s", &inexit);
/////̺κ
if(inexit=="exit\0")
break;
printf("Input x value: ");
scanf("%d", &x);
printf("Input y value: ");
scanf("%d", &y);
fflush(stdin);
printf("Select the operator, '+' '-' '*' '/' '%' \n");
scanf("%c", &cal_operator);
// ڵ //
ڵ Ϻ Դϴ. exit while ϴ ǵ.. if κп inexit exit Ǵµ ʰ dz! |