1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
azamat
3 years ago
10

Define the function add_mn that takes two integers m, n as arguments and returns m + 10 * n. For instance, add_mn 3 5 = 3 + 10*5

= 53. You are, however, not allowed to use addition and multiplication directly: instead, you must write a recursive solution that calls add10!
Mathematics
1 answer:
jok3333 [9.3K]3 years ago
8 0

Answer:

// C++ Program to arithmetic operationf on 2 Numbers using Recursion

// Comments are used for explanatory purpose

#include <bits/stdc++.h>

using namespace std;

// add10 recursive function to perform arithmetic operations

int add10(int m, int n)

{

return (m + product(n, 10)); //Result of m + n * 10

return 0;

}

// Main Methods Starts here

int main()

{

int m, n; // 2 Variables m and n declared as integer

cin>>m; // accept input for m

cin>>n; // accept input for n

cout << "Result : "<<add10(m,n); // Print results which is calculated by m + 10 * n

return 0;

}

You might be interested in
Find the equation of the line passing through the points (4,5) and (-6,15)
alex41 [277]

Answer:

y = − x + 9

Step-by-step explanation:

Plz Mark brainliest!

5 0
3 years ago
The square root of -100 = ___ + ___i
ddd [48]

Answer:

The square root of -100 is 10i

Step-by-step explanation:

7 0
2 years ago
Read 2 more answers
Is, “What is your favorite color?” A statistical question? Why or why not?
nignag [31]

Answer:

This is a statistical question because to answer this question, you would collect data by asking students about their favorite colors, and there would be variability in the data. The favorite color would not be the same for every student

Step-by-step explanation:

4 0
2 years ago
After selling a dozen copies of the daily newspaper a newsstand had fewer than 75 copies left how many copies did the newsstand
Aneli [31]
The daily newspaper stand had began with 87 copies.
8 0
3 years ago
Read 2 more answers
Help with math please ​
MA_775_DIABLO [31]

Answer:

B

Step-by-step explanation:

its kinda obvious

5 0
3 years ago
Other questions:
  • 12. Erma has her eye on two sweaters at her favorite clothing store, but she has been waiting
    15·1 answer
  • What’s the prime factor** of 630
    8·1 answer
  • 11 points ! Which choice is the correct graph of |x| &gt; 5
    8·1 answer
  • An aircraft has a total time in service of 468 hours. The Airworthiness Directive given was initially complied with at 454 hours
    7·1 answer
  • What is the closest perfect square number less than 54?
    13·1 answer
  • Ella is 12.537 miles from her house which shows the value of 12.537 rounded to the nearest tenth and nearest hundredths F 12.6,
    15·1 answer
  • Y=300(1+0.06/12)^12t<br><br>i need to answer. no links or I'll report ​
    7·1 answer
  • Can someone please help me make a story i need it done tonight!!
    6·1 answer
  • 2. If x represents a positive integer, find the solutions to the following inequalities. a. x − 15 &lt; 20 b. x + 3 ≤ 15 c. −x &
    15·1 answer
  • The midpoint of a segment is (2, -8) and one of the endpoints is (3,6). What are the coordinates of the other endpoint?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!