Write a C program that convert given temperature in Fahrenheit to Celsius.
Write
a C program that convert given
temperature in Fahrenheit to Celsius.
Problem Name: Write a C program that convert given
temperature in Fahrenheit to Celsius.
Algorithm:
Step 01: Start
Step 02: Input temperature in Fahrenheit
Step 03: Calculate Celsius c = (f-32)*1.8
Step 04: Show temperature in Celsius
Step 05: End
C Program:
#include<stdio.h>
int main ()
{
float
f,c;
printf("\n\t
Input temperature in Fehrenheit=");
scanf("%f",&f);
c=(f-32)*1.8;
printf
("\n\t Show Temperature in Celsius=%.2f",c);
return
0;
}
লেবেলসমূহ: C_programming
0টি মন্তব্য:
একটি মন্তব্য পোস্ট করুন
এতে সদস্যতা মন্তব্যগুলি পোস্ট করুন [Atom]
<< হোম