e is my count
e=0;
PerValue=11;
while PerValue>Pererror && e<5
V0=x;
Vn=V0-(polyval(Vector,V0)/polyval(A,V0));
e=e+1;
PerE=abs((Vn-V0)/V0)*100;
x=Vn;
end
finalroot=Vn;
fprintf('The volume at T=0 for the given equation is %0.5f [m^3]\n',V0)
fprintf('The solution coverged in %0.0f iterations\n',e)