Posts

C Program To Convert Fahrenheit To Celsius

C Program To Convert Fahrenheit To Celsius Learn How To Convert Fahrenheit To Celsius in C Programming Language. This C Code For Temperature Conversion from Fahrenheit into Celsius is developed using Simple Mathematical Operators. Formula To Convert From Fahrenheit To Celsius: Celsius = (Fahrenheit – 32 ) / (9/5) This Formula can be further modified as: Celsius = (Fahrenheit – 32 ) / (1.8) Program: 1 2 3 4 5 6 7 8 9 10 11 12 #include<stdio.h> #include<conio.h> Void main ( ) {        double celsius , fahrenheit ;        printf ( "\nEnter The Temperature in Fahrenheit:" ) ;        scanf ( "%lf" , & fahrenheit ) ;        celsius = ( fahrenheit - 32 ) / 1.8 ;        printf ( "\nTemperature in Celsius: %lf" , celsius ) ;  ...

Add Two Numbers C Program

Add Two Numbers in C Program 1) Using Predefined Values: 1 2 3 4 5 6 7 8 9 10 11 #include<stdio.h> #include<conio.h>   Void main ( ) {      int var1 , var2 , sum ;      var1 = 25 ;      var2 = 36 ;      sum = var1 + var2 ;      printf ( " Sum of Two Numbers:\t %d\n " , sum ) ;      } Expected Output: Sum of Two Numbers:     61                                                                                                                       2) Using User Defined V...