About 882,000 results
Open links in new tab
  1. C Program to Add Two Integers - GeeksforGeeks

    Jan 10, 2025 · Given two integers, the task is to add these integer numbers and return their sum. Examples. Explanation: The sum of 5 and 3 is 8. Explanation: The sum of -2 and 7 is 5. In C, …

  2. C Program to Calculate Sum of Natural Numbers - GeeksforGeeks

    Jan 27, 2023 · Here we will build a C program to calculate the sum of natural numbers using 4 different approaches i.e. Using while loop; Using for loop; Using recursion; Using Functions; …

  3. Algorithm and Flowchart to add two numbers - GET EDUCATE

    Name of Algorithm: To add two numbers. Step 1: Start. Step 2: Read two numbers as A and B. Step 3: Sum = A + B. Step 4: Display Sum. Step 5: Stop. Let us do the dry run of the above …

  4. C Program to Perform Addition, Subtraction, Multiplication

    C program to perform basic arithmetic operations of two numbers. Numbers are assumed to be integers and will be entered by the user. add = first + second; . subtract = first - second; . …

  5. C Program to Add two numbers given by the user - Studytonight

    Feb 9, 2022 · C Program to Add two numbers given by the user. In C language, to read the inputs we use the scanf() function, and then to print the result we use the printf() function. The %d …

  6. C Program to Add Two Numbers

    Nov 19, 2022 · Algorithm to Add Two Numbers in C. Start; Declare variables num1, num2, and res; Read values for num1 and num2; Add the values of num1 and num2 and assigned the …

  7. Addition of two numbers in C - Programming Simplified

    In C language, adding two numbers is the arithmetic operation of adding them using '+' operator. For example, consider the expression (z = x + y), here x, y and z are integer variables, the …

  8. Add two numbers in C (with algorithm) - ReadMeNow

    Algorithm to add two numbers in C: 1) Start. 2) Accept Number one. 3) Accept Number two. 4) Add both the numbers. 5) Print the result. 6) End. Program to add two numbers in C:

  9. Program to Add Two Numbers in C - Learnprogramo

    Algorithm of Adding two Numbers. 1 Step: START. 2 Step: Initialize integers A, B and C. 3 Step: Accept two integers A and B from User. 3 Step: Now do the operation using formula C=A+B. 4 …

  10. Addition of Two Numbers in C - Sanfoundry

    Here is a Program to find the addition of two numbers in C using + operator, function and without using + operator and third variable.

Refresh