#include <stdio.h>
int main()
{
double o=32,r=0.0821,v,p,t,n,m;
printf("Enter the pressure of container: ");
scanf("%lf",&p); //Taking pressure from user
printf("Enter the volume of container: ");
scanf("%lf",&v); //Taking volume from user
printf("Enter the temperature of the container: ");
scanf("%lf",&t); //Taking temperature from user
t = t + 273;
m = (p*v)*o/(r*t); //Calculating the mass
printf("The mass of oxygen gas in the conatiner is: %lf",m);
//Printing the ans
return 0;
}
Output:-
Get Answers For Free
Most questions answered within 1 hours.