We prove an upper bound on the degree complexity of Putinar's
Positivstellensatz. This bound is much worse than the one obtained previously
for Schm\"udgen's Positivstellensatz but it depends on the same parameters. As
a consequence, we get information about the convergence rate of Lasserre's
procedure for optimization of a polynomial subject to polynomial constraints