About 9,580,000 results
Open links in new tab
  1. C Program to Add Two Integers

    In this C programming example, the user is asked to enter two integers. Then, the sum of these two integers is calculated and displayed on the screen.

  2. Addition using functions examples in C - Tutor Joes

    The "scanf ()" function is used to get the two values from the user. The sum of the two values is stored in the "c" variable using the addition operator. The "printf ()" function is used to print the …

  3. 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, …

  4. How to code the summation of a function in C? - Stack Overflow

    Oct 5, 2019 · I need to code a program that will compute a complex function which represents an M/M/1 queue. The function includes sub functions such as calculating the integral of a gamma …

  5. 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 …

  6. C Program to find Sum of N Numbers - Tutorial Gateway

    This article shows How to write a C Program to find the Sum of N Numbers using For Loop, While Loop, Do While, Functions, and Recursion.

  7. C Program to Calculate Sum of Array Elements - GeeksforGeeks

    Nov 21, 2024 · In this article, we will learn how to find the sum of elements of an array using a C program. The simplest method to calculate the sum of elements in an array is by iterating …

  8. C Program to Calculate the Sum of Natural Numbers

    In this example, you will learn to calculate the sum of natural numbers entered by the user in C programming with output...

  9. Sum of array including a function - C - Stack Overflow

    Dec 29, 2020 · Our task is to sum up all elements of an array using a function. The function should print out the array, then sum up its elements and give back its sum to the main.

  10. User-defined function in C with Examples - BeginnersBook

    Sep 14, 2022 · An example of function: You are frequently writing 4-5 lines of code to find the sum of two numbers, you can easily replace these 4-5 lines with a function call and inside that …

Refresh