C Program for LCM and HCF

In the world of computer programming, it is important to understand basic mathematical concepts like the highest common factor(HCF) and least common multiple(LCM) etc. These concepts play an important role in solving various mathematical problems. In this article, we are going to write a C program to compute HCF and LCM of two numbers. What … Read more

C Program for Division of Two Numbers

C Program for Division of Two Numbers – In the realm of computer programming, C stands as a foundational language known for its simplicity and powerful capabilities. Division, one of the fundamental arithmetic operations, can be efficiently performed in C programming. This tutorial article aims to elucidate the process of dividing two numbers using C, … Read more

C Program for Subtraction of Two Numbers

C Program for Subtraction of Two Numbers – Subtraction is a fundamental arithmetic operation that involves finding the difference between two numerical values. In computer programming, subtraction can be efficiently executed using various programming languages, including the popular language, C. In this article, we’ll explore a simple C program that performs subtraction between two numbers. … Read more

C Program to Calculate Sum and Percentage of Marks

C, being a powerful and widely used programming language, allows developers to create efficient programs. In this tutorial, we’ll create a program that accepts marks for five subjects and calculates both the sum and the percentage marks obtained by a student. Problem Statement WAP that accepts the marks of 5 subjects and finds the sum … Read more

C Program to Swap Two Numbers Using Pointers

In the world of C programming, pointers stand as powerful entities that facilitate direct memory manipulation. Pointers hold memory addresses and allow us to access and modify data indirectly, offering flexibility and efficiency in programming. Let’s write a simple C program that swaps the values of two numbers using pointers C Pointer Basics A pointer … Read more

C Program for Addition of Two Numbers

Addition is one of the basic operation in the world of computer programming. In This article we are going to see a c program for addition of two numbers. C Program for Addition of Two Numbers In the C program above, we first declare two variables named a and b. After that, we ask the … Read more