GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


c porg. by canada
int main()
{
    
    float starttemp, stoptemp, numaccurate, calculate;
    
    printf("Enter Start temperature (in degrees) C:\n");
    scanf("%f",&starttemp);  
    printf("Enter Stop temperature (in edges C):\n ");
    scanf("%f",&stoptemp);
    printf("Enter temperature accuracy (in edges C):\n");
    scanf("%f",&numaccurate);
    printf("The conversion Table is:\n");
    
    for (starttemp=starttemp;starttemp<=stoptemp;starttemp+=numaccurate)
    {
        
    
    printf("Celsius = %f\n",starttemp);
    calculate = (9/5*(starttemp)) + 32;
    printf("Farhenheit = %f\n",calculate);
    
    system("pause");

    
    }

return 0;
 
}