Tag

#c basic programs

16 posts

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

October 31, 2021Read 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

October 31, 2021Read 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 &

October 28, 2021Read 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

September 16, 2021Read 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 represent

August 30, 2021Read 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

August 20, 2021Read 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

July 4, 2021Read 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

July 4, 2021Read more →