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
MATH LOVERS!!! Can u send me a pic of you filling this out plz!!!!
Nookie1986 [14]

Answers

Located In The Following Attachments

High Hopes

                    Barry-

8 0
3 years ago
Read 2 more answers
Pls someone plsss help meeeee
vivado [14]

Answer:

student a answered correctly

Step-by-step explanation:

student b didn't multiply the crossproducts

6 0
3 years ago
Read 2 more answers
What is the lowest common denominator of 5 and 9
lozanna [386]
It is 45 . Just simply multiply both numbers. You will get the smallest denominator
6 0
2 years ago
a radio station can broadcasts in all directions to a distance of 60 mi. what is the area in which the station can be heard
zaharov [31]

Answer:

Area = PI * radius ^ 2

Area = PI * 60^2

Area = PI * 3,600

Area = 11,309.73 square miles

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Write as an equation: 1/3 of a shipment of books weights 28 pounds
Crazy boy [7]

Answer:

x=28 (pounds) * 1/3

Step-by-step explanation:

28/3 gives you 1/3 of the shipment weight.

6 0
3 years ago
Other questions:
  • Please Help! GEOMETRY!
    12·2 answers
  • How are volatility and risk related in an investment?
    8·2 answers
  • What is the length of XZ?
    15·2 answers
  • Sevierville Middle School arranges their sports
    7·1 answer
  • Am i getting paid for answering questions @eurpoa2344
    9·2 answers
  • Like terms for 3xy<br> 2x<br> -5xy<br> 4<br> 7y<br> xy<br> -3
    15·1 answer
  • Solve. 6( x + 11 ) = 36<br> X = 5<br> X = 19<br> X = -5<br> x= -19
    10·2 answers
  • 3.5.2 Test (CSI) Question 6 of 12 Use the area of the rectangle to find the area of the triangle. 5 ft 10 ft O A. The area of th
    12·1 answer
  • Find the area of the shape shown below.
    11·1 answer
  • A train goes from springfield, MA, to boston at 40 mph. On the way back, it returns with a speed 80 mph. If it takes an hour les
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!