ava212101
ava212101 ava212101
  • 11-09-2020
  • Mathematics
contestada

how to combine two integers​

Respuesta :

philiamokonin
philiamokonin philiamokonin
  • 11-09-2020

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

Answer Link

Otras preguntas

what was the major cash crop grown in the Caribbean by colonial powers
Where is Buddhism widely practiced today? A. Area A B. Area B
how did the discovery of electrons show that they are also prositive charge part of an atom
How would our lives be different if we had never realized the existence of microorganisms. Provide one example to support your awnser
People who agreed to work in exchange for passage to the colonies Servantes
is 4/8 closer to 0 or 1 and why
Estimate each product.solve to check your estimate.40×6
a whale is 24 meters long. a rhinoceros is 400cm long which is longer how much longer?
The Mayflower was not built to be a transportation ship for people. What was the original purpose of the Mayflower? (a) As a merchant ship to carry wine (b) As
A 9 pound bag of mangoes cost $12.How much does 1 pound of mangoes cost