#include<stdio.h>
#include<math.h>
main()
{float C,F;
printf("enter your number for Fahrenheit :\n");
scanf("%f",&F);
C=(F-32)/1.8;
printf("Converted temparature in celcius is %f", C);
}
//Vice versa//
#include<stdio.h>
#include<math.h>
main()
{float C,F;
printf("enter your number for celcius:\n");
scanf("%f",&C);
F=(1.8*C)+32;
printf("Converted temparature in ferhenheit is %f", F);
}
#include<math.h>
main()
{float C,F;
printf("enter your number for Fahrenheit :\n");
scanf("%f",&F);
C=(F-32)/1.8;
printf("Converted temparature in celcius is %f", C);
}
//Vice versa//
#include<stdio.h>
#include<math.h>
main()
{float C,F;
printf("enter your number for celcius:\n");
scanf("%f",&C);
F=(1.8*C)+32;
printf("Converted temparature in ferhenheit is %f", F);
}