Celsius to fahrenheit

Program:

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