For the case as stated below,
a=3; b=4; c=5;
k = menu ('choose','a','b','c');
If the user select a how can I assign a value for it and do a logical loop? For example,
if 'a'; x=a;
else if 'b'; x=b;
else if 'c'; x=c;
end
Then I can continue my calculation using the value of x assigned. For example,
w=x+5
kis the number of the user’s choice. In your case: