ode2 in multiline input



When I wrote this in multiline input , I have a problem


'diff(x,t,2)+x=0;
ode2(%,x,t);

Please help me.Is there another way to do this?