Code Scrappers


Temperature from degree centigrade to Fahrenheit C program


              #include<stdio.h>
              #include<stdlib.h>

              void main()
              {
                  float f,c;

                  printf("\n Enter Temperature in Celsius scale : ");

                  scanf("%f", &c);

                  f = (1.8 * c) + 32;

                  printf("\n Temperature in Fahrenheit scale : %f ", f);

              }

          



Output

    Enter Temperature in Celsius scale : 35

    Temperature in Fahrenheit scale : 95.000000