The decimal adds a zero every time the powers of ten increase for example if u do 1 x
=100 if u do 1x
=1,000
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;
}
135 miles / 3 hours = 45 mph
210 = 4/5 (This means that 4 out of five people (210 people) are a teenager)
Then you divide 210 by the numerator to get 1/5 people:
210 / 4 = 52.5
Then you can multiply the 1/5 people (52.5) by 5 to get 5/5:
52.5 * 5 = 262.5 (rounded to 262)
Thus the maximum amount of teenagers in Geotown is 262.
Hope this helps! :)