About 2,160,000 results
Open links in new tab
  1. C Program for Addition of Two Numbers Using Functions

    Program description:- Write a C program to calculate addition of two floating-point numbers using functions. Write three functions:- input(), addition(), display(). Take input from user in user-defined function input() and return back to the main function.

  2. Sum of Two Numbers in C using Function - W3CODEWORLD

    May 13, 2022 · In this article, you will learn how to find sum of two numbers in c using function, pointers, array, and recursion with and without minimum variables. Result:: 5 + 7 = 12. int p, q, r; printf ("Enter two integer values::\n\n"); scanf ("%d %d", &p, &q); // calculating sum . r = p + q; . printf ("Result:: %d + %d = %d\n", p, q, r); return 0;

  3. C Program to Perform Arithmetic Operations Using Functions

    In this program, we will learn how to perform arithmetic operations using functions in the C Programming language. This program asks the user to enter two numbers. Then, it finds Addition , Subtraction , Multiplication , Division and Modulus of …

  4. Addition using functions examples in C - Tutor Joes

    This program is a C program that performs the addition of two numbers using a function. The header file "stdio.h" is included, which contains the standard input/output library functions. The "void add()" function is declared, which will perform the addition of two numbers.

  5. C Program to Add Two Integers

    In this program, the user is asked to enter two integers. These two integers are stored in variables number1 and number2 respectively. scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers.

  6. Sum of two numbers in C using function - Code Revise

    Sum of Two Numbers using Functions. In this example code, you will learn to make sum of two numbers in c using function. Sum of two numbers is the basic program to add the values of two numbers and print addition as result in c language. for example: a = 5, b = 10; sum = a + b; Example: Sum of two numbers in C using functions

  7. C Program for Addition Subtraction Multiplication Division using Function

    Menu-driven C Program for Addition Subtraction Multiplication and Division using Function. Program description:- Write a menu-driven program to find addition, subtraction, multiplication, and division of two numbers using the user defined functions and the program should accept choice from the user repeatedly.

  8. C Program To Add Two Numbers Using Functions/Pointer - C

    C program to add two numbers using function: #include<stdio.h> #include<conio.h> int add(int a,int b); //function declaration void main() { int sum,x,y; clrscr(); printf("\n Enter Any Two Numbers To Add : "); scanf("%d%d",&x,&y); sum=add(x,y); //calling the function printf("\n Addition = %d",sum); getch(); } int add(int a, int b) //definition ...

  9. C Program to Add two numbers - BeginnersBook

    Jul 22, 2022 · In this tutorial, you will learn how to write a C program to add two numbers. This is a very basic C program where user is asked to enter two integers and then program takes those inputs, stores them in two separate variables and displays the sum of these integers.

  10. Program in C to add two numbers using function (Pass by

    Apr 9, 2010 · The below program in C accepts 2 integer numbers and calculates the sum of those 2 numbers using add function. add function accepts two integer parameters namely nos1 and nos2. This function then calculates the sum and return the result to the calling main function.

  11. Some results have been removed
Refresh