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
AleksandrR [38]
3 years ago
9

How to combine two integers​

Mathematics
1 answer:
Genrish500 [490]3 years ago
5 0

The simplest approach to do this is:

Convert both numbers to string

Concatenate both strings into one, as this is comparatively easy

Convert this concatenated string back to integer

Step-by-step explanation:

Given two integers n1 and n2, the task is to concatenate these two integers into one integer.

Example:

Input: n1 = 12, n2 = 34

Output: 1234

Input: n1 = 1, n2 = 93

Output: 193

You might be interested in
the are of a rectangular tablecloth is 4 1/6 square meters. the width of the tablecloth is 1 1/4 meters. what is the length of t
shtirl [24]
3 1/3 is the length of the table cloth
4 0
3 years ago
Find the common difference for the sequence below. 1/4, 5/16, 3/8,..
vredina [299]

Answer:

the common difference of the sequence is (\frac{1}{16})

Step-by-step explanation:

A sequence of numbers is said to be in arithmetic progression of each term of the sequence has same common difference.

Now, here first term a1 = 1/4

Second term a2 = 5/16

Third term a3 = 3/8

Now, Common difference (d) = a2 - a1 = a3 - a2

Now, a2 - a1 = \frac{5}{16}  - \frac{1}{4}  = \frac{5 - 4}{16}  = \frac{1}{16}

Now, a3 - a2 =  \frac{3}{8}  - \frac{5}{16}  = \frac{6 - 5}{16}  = \frac{1}{16}

Hence, the common difference of the sequence is (\frac{1}{16})

5 0
3 years ago
katelyn bought 5.68 pounds of peaches. the peaches were on sale for 1.49 a pound. how much did lately spend on peaches
Leya [2.2K]
So Katelyn bought 5.68 pounds of peaches. And one pound of peaches cost $1.49. So that would mean that we would have to multiply the pounds of peaches she bought, with how much each pound costs. 5.68 × 1.49 = ?

Once you multiply these two decimals, you would get 8.4632. So she spent $8.4632 on 5.68 pounds of peaches. You would multiply the two decimals to find how much she spent in all.
7 0
3 years ago
Read 2 more answers
H=10 cm<br>T = 7 cm<br>A. Calculate the volume of the cylinder​
Brut [27]

Answer:

 70cm

Step-by-step explanation:

8 0
3 years ago
Yahoo creates a test to classify emails as spam or not spam based on the contained words. This test accurately identifies spam (
Amiraneli [1.4K]

Answer and Step-by-step explanation:

The computation is shown below:

Let us assume that

Spam Email be S

And, test spam positive be T

Given that

P(S) = 0.3

P(\frac{T}{S}) = 0.95

P(\frac{T}{S^c}) = 0.05

Now based on the above information, the probabilities are as follows

i. P(Spam Email) is

= P(S)

= 0.3

P(S^c) =  1 - P(S)

= 1 - 0.3

= 0.7

ii. P(\frac{S}{T}) = \frac{P(S\cap\ T}{P(T)}

= \frac{P(\frac{T}{S}) . P(S) }{P(\frac{T}{S}) . P(S) + P(\frac{T}{S^c}) . P(S^c) }

= \frac{0.95 \times 0.3}{0.95 \times 0.3 + 0.05 \times 0.7}

= 0.8906

iii. P(\frac{S}{T^c}) = \frac{P(S\cap\ T^c}{P(T^c)}

= \frac{P(\frac{T^c}{S}) . P(S) }{P(\frac{T^c}{S}) . P(S) + P(\frac{T^c}{S^c}) . P(S^c) }

= \frac{(1 - 0.95)\times 0.3}{ (1 -0.95)0.95 \times 0.3 + (1 - 0.05) \times 0.7}

= 0.0221

We simply applied the above formulas so that the each part could come

8 0
3 years ago
Other questions:
  • Circle D is shown with the measures of the minor arcs.
    8·2 answers
  • There are 26 baseball teams in the league. Each team has 18 players. Write a number sentence that will provide a reasonable esti
    8·2 answers
  • What is the area *answer choices in picture*
    7·2 answers
  • Student Council made $540 on the Spring Dance. This is one and a half times more than what they made on the Welcome Dance. How m
    6·1 answer
  • The supplementary angle of π/5 is
    15·1 answer
  • How do u solve y=2/3x-4
    11·1 answer
  • Three terms , 19-6x , 2 + 4x , 6x + 1, are in arithmetic progression .
    5·1 answer
  • The table shows the gallons filled in a pool over time (ASAP)
    10·1 answer
  • Equation practice with angle addition ​<br>please help guys ❤
    14·2 answers
  • Ed and carol are jogging around a circular track in the park. the diameter of the track is 0.8 miles. find, to the nearest mile,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!