Winnebago Industries swung to a fiscal fourth-quarter profit as price increases helped offset weaker consumer demand.