Skip to main content

Posts

Featured

C program to convert fahrenheit to celcius and vice versa.

  C program to convert Fahrenheit to Celcius                                     and  vice versa.                                             It is the best c programming application for beginners. We know that,                        (i)celcius=(fahrenheit-32)*5/9                                           &                       (ii)fahrenheit=(cel*9/5)+32 Now we will apply these formulas in the program:- #include<stdio.h> int main() { float cel,fahr; int choice; printf("Enter 1 for f to c and 2 for c to f\n"); printf("Enter the Choice:"); scanf("%d",&choice); if(choice==1) { printf("Enter the temperature in Fahrenheit:"); scanf("%f",&fahr);         cel=(fahr-32)*5/9;         printf("Celsius=%f",cel);     }     else if(choice==2)     {     printf("Enter the temperature in Celsius:");     scanf("%f",&cel);     fahr=(cel*9/5)+32;     printf("Fahrenheit=%

Latest Posts

C program to identify whether a number is even or odd

Write a program to find out the area of circle

Write a program for swapping of two numbers?

Write a program to find SI and total amount by giving P,R,T ?

How to find out area of a rectangle in c programming?

How to find area of a square in C Programming ?

Write a program to find cube of a number ?

How to calculate perimeter of a rectangle in C programming ?

C program to find out perimeter of a square

How to add 2 numbers in c programming ?