How does cid make power?

The length of the stroke, size of the bore, the speed in which air enters in, and the speed in which the air leaves, the air/fuel ratio, and the heat of the spark, and the number of cylinders, determines how much power an engine makes.