Posts

Showing posts from February, 2022

C Programs to practice -Fahrenheit to Celsius and Celsius to Fahrenheit conversions

  Fahrenheit to Celsius conversion: This is a simple temperature conversion program. In this program ,the given temperature is in Fahrenheit. This program converts it to Celsius by using a simple formula. Program: “Fahrentocelsius.c” #include<stdio.h> #include<conio.h> void main() { /* variable declaration statement. Fa- Fahrenheit, ce- Celsius */   float fa, ce;                      printf(“ Enter the temperature value in Fahrenheit”); /* read the Fahrenheit value */ scanf(“%f”,&fa);       / * formula for converting Fahrenheit to Celsius value */ ce=(fa-32)*5/9; /* The converted celsius   value*/ printf(“The temperature value in celsius is: %f”,ce); getch(); } Try it : In the same way, you can try the Celsius to Fahrenheit conversion in   your own. Steps for converting Celsius to Fahrenheit...

How to install turbo c++ in your pc/Laptop?

C is a structured programming language. It was developed by Dennis Ritchie in AT&T bell laboratories. It is the base language of all programming language. Bcpl and B languages are the previous languages. Features: C has lot of features. ·        C is a middle level language. It supports system level functions and high level programming. ·        It is portable. The user can run in any machine. It is machine independent language. ·        It is a Structured programming language. It supports functions. ·        The compilation and execution speed is fast because it has many inbuilt functions. ·        It is extensible language.   How to  Install turbo C++?        C programming starts from installing turbo c++ compiler in your system. It has the following steps:   First, Download the ...