The K\"unneth theorem for the Fukaya algebra of a product of Lagrangians