or to find the moles of CO2 through masses and volume
n=m/M=v/V
m & v are the known masses and volume
M is the molar mass of CO2 = [12.01 + (2x16)] = 44.01
V is the Avogadro's constant volume:
at STP (0 degrees C) = 22.71L
at (25 degrees C) = 24.79 L
And therefore, n=m/44.01 ; n = v/22.71 L or 24.79 L
If you using c=n/v to find the moles, you can just substitude the formula to =
n=c x v
c=concentration
n=moles
v=volume