a=input('Give a:');
while a<=0
    a=input('Give a>0:');
end
x=[a,0];
y=[-16, 43.3,0];
r=roots(y);
if r(1)>0
    t0=r(1);
else
    t0=r(2);
end

xt0=polyval(x,t0);

fprintf('The object will hit the ground in %.2f seconds\n', t0)
fprintf('%.2f meters away from its base\n', xt0)


