Tag

#c number programs

31 posts

C Program to Add Two Numbers Using Call by Reference

The program takes the two numbers from the user and passes the reference to the function where the sum is calculated. You may go through the topic below. Output: Enter the first number: 15.5Enter the Second number: 20.5Sum of the result: 36.000000 This is a simple C program that demonstrates the use

January 6, 2024Read more →

C Program to Reverse a Number using for loop

In this tutorial, we will write a reverse number in C using for loop. Before that, you may go through the following topics in C. C program to reverse a number using for loop This is a reverse number program in C using for loop where the program takes the input from the user. And … Read more

December 5, 2021Read more →

C Program to Add Two Numbers using Pointers

In this tutorial, we will write a program to find the sum of numbers using pointers in C program. Before that, you should have knowledge on the following topic in C: C Program to Add Two Numbers using Pointers The program takes the two numbers from the user and finds the sum of those numbers …

September 24, 2021Read more →

C Program to Swap Two Numbers

In this tutorial, we will learn how to swap two numbers in C program. Before that, if you may go through the following topics in C that are used in this program. C Program to Swap Two Numbers using temporary variable The program takes two number inputs from the user that needed to be swapped. &#8230

August 20, 2021Read more →