C Program to Convert Fahrenheit to Celsius

In this tutorial, we will write a C Program to convert Fahrenheit into Celsius. Let us start by understanding the formula for the conversion of Fahrenheit into Celsius. Fahrenheit and Celsius, both are the unit for measuring the temperature. Fahrenheit is represented by oF and Celsius by oC. Formula to convert Fahrenheit into Celsius celsius … Read more

Infix to Postfix Conversion in C Program using Stack

Stack is very useful for storing data in the manner of the stack. It s useful when comes to the conversion of arithmetic expressions in high-level programming languages into machine-readable form. There are some complicated arithmetic expressions such as (A+B)*C(D/(E+D)). This form can be converted into polish notation using stack. Infix and Postfix Expression Infix … Read more

Fizz Buzz Program in C

In this tutorial, we will learn about Fizz Buzz Implementation in C programming. Let us start by understanding what Fizz Buzz is and its implementation in a program. Fizz Buzz Program A Fizz Buzz program prints the number from the range of 1 to n, where n is the input number taken from the user. … Read more

C Program to Find Second Largest Number in an Array

The following C program finds the second largest element present in an array. The program iterates through an array and compares each element in an array. For example: Input: arr[] = {5, 85, 19, 6, 99, 45}Output: The second largest element is 85. C Program to Find Second Largest Number in an Array Output: Enter … Read more

C Program to calculate Simple Interest

In this tutorial, we will write a program to find the Simple Interest in C. And the formula to calculate the Simple Interest (SI) is: SI = ((p * r * t) / 100)) where, p = Principal r = Rate of Interest t = Time Period Explanation:The program takes the user input for Principal, … Read more

C Program to Print Hello World

This is the most basic program where the program prints the hello world. Through this, you can understand the basic structure of the C program. This the basic program for beginners in C. Let us go through an example. Program to Print “Hello World” in C Output: Hello, World! Run the above program in your … Read more