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

1,16,44,98,204,what next number​
A line is perpendicular to y = -x + 1 and intersects the point (-5,1). What is the equation of this perpendicular line?
ANSWER ASAP! In your own words name two types of acids and two types of bases. Describe how each are used.
Water is flowing into a large spherical tank at a constant rate. Let V(t) be the volume of water in the tank and H(t) be the height of the water level at time t
f (x) = 3x² - 4x Find f (-1)
With regard to operational hedging versus financial hedging:_________.
the population of a town was 25,000 people. Then 3,200 people moved away. What was the percent of decrease?
PLEASE HELP!!! Federalism places limits on state governments' power by:
This is for science please help me!
The tags are always enclosed within a pair of(a) curly(b) square(©) angular​