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
In ACME PUBLISHING SWEEPSTAKES, the chance of winning a car is 1 in 1,000. What percent of tickets to ACME PUBLISHING SWEEPSTAKE
Yuri [45]

Answer:

0.1% of tickets to ACME PUBLISHING SWEEPSTAKES win a car

Step-by-step explanation:

Given :The chance of winning a car is 1 in 1,000.

To Find : What percent of tickets to ACME PUBLISHING SWEEPSTAKES win a car?

Solution:

The chance of winning a car is 1 in 1,000.

The percent of tickets to ACME PUBLISHING SWEEPSTAKES win a car:

=\frac{1}{1000} \times 100

=\frac{1}{10}

=0.1\%

Hence 0.1% of tickets to ACME PUBLISHING SWEEPSTAKES win a car.

8 0
3 years ago
100 points and brainliest<br> What Is the purpose of an amino acid codon chart?
8090 [49]
<h3>♫ - - - - - - - - - - - - - - - ~Hello There!~ - - - - - - - - - - - - - - - ♫</h3>

➷ The purpose of having these is so that we can identify the amino acid that corresponds to DNA and RNA to produce a protein. They specify the order of amino acids in producing the protein.

<h3><u>✽</u></h3>

➶ Hope This Helps You!

➶ Good Luck (:

➶ Have A Great Day ^-^

↬ ʜᴀɴɴᴀʜ ♡

8 0
3 years ago
Read 2 more answers
Pls help me this is really hard
LekaFEV [45]

Answer:Find the area of square and then circle then take them away

Step-by-step explanation:

7 0
2 years ago
A rectangle with an area of 5/8 ft² is dilated by a factor of 8. What is the area of the dilated rectangle?
gulaghasi [49]

Answer:

40 ft²

Step-by-step explanation:

Let the length of the original rectangle be L and original Breadth be B

it is given that the original area  is 5/8 ft²

i.e.

Original Length x Original Breadth = Original Area, or,

LB = 5/8 ft² ------------------(1)

Given that the dilation factor is 8,

Hence,

New Length = 8L and New Breadth = 8B

THerefore,

New Area = 8L x 8B

= 64 LB  (from (1) above , we know that LB = 5/8 ft², substitute into expression)

= 64 (5/8)

= 40 ft²

4 0
4 years ago
As more and more people get their news online, the subscriptions to the Dorchester Daily has declined over the past years.
atroni [7]

Answer:

Step-by-step explanation:

The function s(x)=0.9(.82)^x models the number of subscription in tens of thousands where x represents the number of years since the trend has been observed.

s(x) represents the number of subscriptions to the Dorchester Daily in a given year.

0.9 in ten thousands represents the initial number of subscriptions to the Dorchester Daily in a given year.

0.82 represents the rate at which the number of number of subscriptions to the Dorchester Daily is declining. The rate in percentage is 100 - 82 = 12% each year.

x represents the number of years since the trend has been observed.

3 0
3 years ago
Other questions:
  • PLEASE HALP MEH
    6·2 answers
  • Find the value of y!!! Please help!
    8·1 answer
  • The factors of 35, 48, and 60 are listed below. Two of these numbers are relatively prime. Click the two numbers that are
    6·1 answer
  • What is the area of the triangle?
    7·1 answer
  • At his lemonade stand, Ishmael has enough lemonade mix to make 3 gallons 2 quarts 1 pint of lemonade. How many 1-cup serving of
    7·2 answers
  • PLEASE ANSWER QUICKLY!!
    6·1 answer
  • -5 1/2 + 6 3/4 + (-4 1/4) =
    5·2 answers
  • Need help with finding the value of x:-<br><br><img src="https://tex.z-dn.net/?f=7x-4%3D3%2B8x" id="TexFormula1" title="7x-4=3+8
    11·2 answers
  • The ratio of angles in a triangle is 11:6:7. find the largest angle
    5·1 answer
  • What percent of 4c in each expression? <br> *2a
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!