var func =prompt("please input the func body: ");
var s1=prompt("please input the first num:");
var s2=prompt("please input the second num:");
var op=new Function("x","y",func);
var result=op(s1,s2);
document.write(result);
var func =prompt("please input the func body: ");
var s1=prompt("please input the first num:");
var s2=prompt("please input the second num:");
var op=new Function("x","y",func);
var result=op(s1,s2);
document.write(result);