Currency Conversion Program in C

In this tutorial, we will write a C program for currency conversion. Before that, you may go through the following topic in C. Explanation: In this program, there is a use of switch statements in C. The program gives the user choice for the conversion. For this example, we have taken four currencies those are … Read more

C Program to Find the Area of a Rectangle

In this tutorial, we will write a C program to find the area of a rectangle. Before that, you may go through the following topic in C. Explanation: The program asks the user to enter the value of length and breadth as an input. Then simply using the formula (area = length * breadth), we … Read more

Menu Driven Program using Switch Case in C

In this tutorial, we will write a menu-driven program in C. We will use the switch case statement present in C to create menus or options. Before that, you may go through the following topic in C programming. C Menu-driven Program using switch case: This is a menu program in C that displays a menu … Read more

C Program to check whether a Number is Binary or Not

In this tutorial, we will write a program to check for the binary number in C. What is a Binary Number? A binary number is a number expressed in the base-2 numeral system that is the number that contains 2 symbols to represent all the numbers. The symbols are 0 and 1. For example: 101011, 110011110, 10001111 are binary numbers. … Read more

C Program to Print ASCII Value of a Character

In this tutorial, we will write a program to print ASCII value of a character in C programming. Before that, you should have knowledge on the following topic in C. ASCII stands for American Standard Code for Information Interchange. It is a 7-bit character set that contains 128 (0 to 127) characters. It represents the numerical value of … Read more

C++ Program to Convert Fahrenheit to Celsius

In this tutorial, we will learn the conversion of a temperature from Fahrenheit to Celsius (or Centigrade) in C++. 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 … Read more

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

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