I've got some code with if, else if, and else statements that evaluate some inequalities.
My question is: How can I assign the result of the statements (which are Monoatomic, Diatomic, Polyatomic in this case) to a string variable, so that later I can annotate a graph using this variable
/* Determine the type of gas - theoretical gamma for: 
     - monoatomic = 1.66 
     - diatomic = 1.4
     - polyatomic = 1.33 */
if (gamma <=1.36)
    printf("This gas is POLYATOMIC\n");
else if (gamma > 1.36 && gamma <= 1.5)
    printf("This gas is DIATOMIC\n");
else
    printf("This gas is MONOATOMIC\n");
As you can see, at the minute I'm only able to print out the result. But this doesn't enable me to use the result later.
 
     
     
    