We compute explicitly the Bergman and Szego kernels for a class of pseudoconvex domains. The kernels are expressed in terms of Appell's multivariable hypergeometric functions. These explicit formulas are applied to investigate the asymptotic behavior of the Bergman kernel near some weakly pseudoconvex boundary points.