Fahrenheit to celsius

Program:

#include<stdio.h>
int main()
{
float f,c;
printf("\nEnter Temperature in fahrenheit: ");
scanf("%f",&f);
c=(f-32)*5/9;
printf("Temperature in celsius: %.4f",c);
return 0;

}

Output:


No comments:

Post a Comment

x^y using recursion

Program: #include<stdio.h> int power(int a,int b); int main() { int x,y,ans; printf("Enter x and y:\n "); scanf(...