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
Someone, please help me out here.
makvit [3.9K]

Answer:

Smallest to largest

Step-by-step explanation

4/3, square root of 2, 1.423..., pie, 1.666...., square root of 4

8 0
3 years ago
“Express each of the following numbers using scientific notation “
avanturin [10]

11. 1.97 * 10^-6

12. 3.5 * 10^-3

13. 2.28 * 10^13

14. 5.302 * 10^-3

15. 1.64 * 10^1

16. 9.85 * 10^-1

Can you see the pattern?

Try the rest yourself

5 0
3 years ago
How do you simplify this
Gala2k [10]
15 + 1 because you are using apsolute value so that negative 1 becomes a positive
8 0
3 years ago
I need help with this question plz
pashok25 [27]

First you need to distribute the exponent into the terms for the first parenthesis.

(-3x²y³)³ = (-3)³ * (x²)³ * (y³)³

= -27 *x⁶ *y⁹

= -27x⁶y⁹

Then you multiply -27x⁶y⁹ by x²y.

You just need to add the exponents of x and y:

-27x⁶⁺²y⁹⁺¹

= -27x⁸y¹⁰

5 0
3 years ago
What is a square root that lies between 17 and 18
sasho [114]

Answer: 10√3

Step-by-step explanation:

4 0
2 years ago
Other questions:
  • Which of the following is a solution of y - x &lt; -3?<br> (6, 2)<br> (2, 6)<br> (2, -1)
    5·2 answers
  • 7x2–5 - 28-3+5.
    5·2 answers
  • Which expression is equivalent to 15+80
    7·1 answer
  • What is the algebraic expression for the following word phrase the quotient of 3 and z
    9·2 answers
  • Evaluate the given algebra expression for x=3and y=3.x2y2
    9·1 answer
  • How do you do number 25? At the bottom.
    10·1 answer
  • Solve for x in the following equation <br> 2^(8x-8)=4^7x
    15·1 answer
  • Given a quadratic function, y = ax2 + bx + c, what happens to the graph when "a" is positive? What happens to the graph when "a"
    15·1 answer
  • Help please ,,,,,,,,,
    10·2 answers
  • Lucy Garcia took out a loan for $40,000 at 10 percent interest for 10 years. Her monthly payments are $528. 60. She made payment
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!