choice = eoption;

while choice ~= 4
   switch choice
      case 1
         explaine;
      case 2
         limite;
      case 3
         x = input('Enter value for x: ');
         expfn(x);
   end
   choice = eoption;
end

