About 1,050,000 results
Open links in new tab
  1. Sum of First N Natural Numbers Using Recursion - GeeksforGeeks

    Sep 27, 2025 · To find the sum of the first n natural numbers using recursion, we define a function recurSum (n-1). At each step, the function adds the current number n to the sum of all smaller …

  2. Product of 2 Numbers using Recursion - GeeksforGeeks

    Mar 17, 2025 · Given two numbers x and y find the product using recursion. Examples : Input : x = 5, y = 2 Output : 10 Input : x = 100, y = 5 Output : 500 To find the product of two numbers x and y using …

  3. Untitled Diagram - Page-1

    Create flowcharts, process diagrams, and more with Draw.io, a free online diagram software.

  4. Design Flowchart In Programming (With Examples) - Programiz

    Examples of flowcharts in programming 1. Add two numbers entered by the user. Flowchart to add two numbers 2. Find the largest among three different numbers entered by the user. Flowchart to find the …

  5. Introduction to Recursion - GeeksforGeeks

    Oct 25, 2025 · In other words, the function makes a recursive call to itself within its own body. An indirect recursive function is one that calls another function, and that other function, in turn, calls the original …

  6. Multiply two integers without using multiplication, division and ...

    Jul 23, 2025 · By making use of recursion, we can multiply two integers with the given constraints. To multiply x and y, recursively add x y times. Approach: Since we cannot use any of the given symbols, …

  7. C Program to Find G.C.D Using Recursion | Vultr Docs

    Sep 27, 2024 · Using recursion to find the G.C.D of two numbers in C demonstrates the power and elegance of recursive functions for solving mathematical problems. By following the examples …

  8. How to Add Two Numbers in Python - GeeksforGeeks

    Jul 11, 2025 · The task of adding two numbers in Python involves taking two input values and computing their sum using various techniques . For example, if a = 5 and b = 7 then after addition, the result will …

  9. Exploring Recursive Methods to Multiply Two Numbers in Python

    Mar 7, 2024 · The function recursive_multiply uses an accumulator acc to build up the result as the recursion unfolds. Each recursive call adds the value of y to acc, reducing x by one until it is zero, at …

  10. A Python Guide to the Fibonacci Sequence – Real Python

    In this step-by-step tutorial, you'll explore the Fibonacci sequence in Python, which serves as an invaluable springboard into the world of recursion, and learn how to optimize recursive algorithms in …