write a C program for Conversion of Temperature from Fahrenheit to Centigrade

c program for conversion of temperature from fahrenheit to centigrade
c program for conversion of temperature from fahrenheit to centigrade

Problem Statement:

Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a c program to convert this temperature into Centigrade degrees.


/* Conversion of Temperature from Fahrenheit to Centigrade */

#include <stdio.h>
#include <conio.h>


float fr, cent;

print(“\n Enter the temperature in Fahrenheit:”);
scanf(“%f”, &fr);

printf(“\n Temprature in Centigrade=%f”, cent);

printf(“\n\n\n\n\n Press any key to exit…..”);


Please run this program and share the output with us.

Related Posts

  • 61
    Problem Statement : If a five-digit number is input through the keyboard, write a program to reverse the number. Answer: /* To reverse the digits of 5-digit number */ #include<stdio.h> #include<conio.h> main() { int n,a,b; long int revnum=0; clrscr(); printf("\n Enter a five digit number less than 32767"); scanf("%d",&n); a=n%10;…
    Tags: printf, #include, program, write, example, learn, tutorial, basic
  • 59
    Problem Statement :  Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. Answer: /* Interchanging of contents of two variables c & d */ #include<stdio.h> #include<conio.h> main() { int c,d,e; clrscr(); printf("\n Enter the number…
    Tags: printf, write, enter, #include, program, key, press, exit, getch, clrscr
  • 58
    Problem Statement: Write a program to calculate the salary as per the following table: Solution: /* C program to calculate salary */ main( ) { char g ; int yos, qual, sal ; printf ( "Enter Gender, Years of Service and Qualifications ( 0 = G, 1 = PG ):" )…
    Tags: program, example, write, learn, tutorial, basic
  • 56
    Write a C Program for the following :- Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Answer:  /* To Calculate the gross salary of Ramesh…
    Tags: basic, printf, program, write, keyboard, #include, press, key, input, exit
  • 55
    The if statement by itself will execute a single statement, or a group of statements, when the expression following if evaluates to true. It does nothing when the expression evaluates to false. Can we execute one group of statements if the expression evaluates to true and another group of statements…
    Tags: statement, basic, program, write, learn, example, tutorial

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: