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
Single quadrant ordered pairs
Marianna [84]

Answer:

this four sections are called the quadrants

3 0
3 years ago
What is the value of x? round the answer to the nearest tenth. the diagram is not drawn to scale.
Zepler [3.9K]
It would also be 60°
B
8 0
3 years ago
Read 2 more answers
Find the quotient of -32/15 divided by -4/5
lana [24]

Answer:

Step-by-step explanation:

-32/15/-4/5

-32/15*5/-4

-32*5/15*-4

-160/-60

8/3

8 0
3 years ago
Two friends Vicky and Micky start a business together. They decided to share their capitals depending up on the variable expendi
elixir [45]

Answer:

a- x = 5/3, or x = -7/2

b- 675

c - 5·x + 2

Step-by-step explanation:

The polynomial representing the capital of the two partners = 6·x² + 11·x - 35

a. The total share is the capital of the two partners together = 6·x² + 11·x - 35

∴ When their total share is equal to 0, we have;

6·x² + 11·x - 35 = 0

Factorizing the above equation with a graphing calculator gives;

(3·x - 5)·(2·x + 7)

Therefore;

x = 5/3, or x = -7/2

b- The total expenditure, when x = 10 is given by substituting the value of <em>x </em>in the polynomial 6·x² + 11·x - 35, as follows;

When x = 10

6·x² + 11·x - 35 = 6 × 10² + 11 × 10 - 35 = 675

The total expenditure of Vicky and Micky when x = 10 is 675

c - The sum of their expenditure is (3·x - 5) + (2·x + 7) = 5·x + 2

7 0
3 years ago
Enter the number 95.2185 below exactly (no rounding)<br> Help please
creativ13 [48]

Answer:

Is this the answer 95.2185

5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a polynomial P with the lowest possible degree that has the given solutions. Explain how you generated each answer.a)−2, 3
    6·1 answer
  • 1 1/4 mi = ? ft<br> 3 3/8 t = ? Ib
    15·1 answer
  • Please answer 30 points
    6·2 answers
  • Hi! Can someone help me with this? Properties and Logarithmic Functions.
    14·1 answer
  • PLZ HELPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!
    12·1 answer
  • What is the expanded form of 373,698
    11·2 answers
  • What does x equal ?​
    14·2 answers
  • 9 Calculator What is the median of the data set? 3, 10, 1, 6, 10, 3, 11, 14<br><br><br><br><br>​
    15·1 answer
  • Solve (x-5)^2=3 <br><br> Please help
    8·1 answer
  • Help with math please! This is table to linear equation (level 3)
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!