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
Complete the table of values for the equation y = 3x + 5.
cricket20 [7]

f(x)=3x+5

f(-2)=3×(-2)+5

= -6+5

=-1

f(-1)=3×(-1)+5

=-3+5

=2

f(0)=3×0+5

=0+5

=5

f(1)=3×1+5

=3+5

=8

f(2)=3×2+5

=6+5

=11

3 0
2 years ago
Ariane gets paid $0.50 for the first 100 craft kits that she assembles. She earns $0.75 for each kit over 100. This week she ass
Fofino [41]
0.50*100= $50
0.75*35=26.25
50+26.25=$76.25
 C
5 0
3 years ago
Read 2 more answers
What is the slope of y=-3x-2
fomenos

Answer:

slope = -3

Step-by-step explanation:

This equation isthe form: y = mx + c

y= -3x-2

so, m = -3

6 0
3 years ago
Read 2 more answers
JOIN <br> id 716 2342 9565<br><br> pass Nike4
pickupchik [31]

Answer: sure

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Select the correct answer from each drop-down menu.
vazorg [7]

Answer:

Step 1: Distribute -2 to 5x and 8

Step 2: Subtract from both sides of the equation 6x

Step 3: Add to both sides of the equation  16

Step 4: Divide both sides of the equation by -16

Step-by-step explanation:

Step 1: Apply the Distributive Property. Then you must  distribute -2 to 5x and 8

Then:

-2(5x+8)=14+6x\\\\-10x-16=14+6x

Step 2: You must apply the Subtraction property of Equality and subtract 6x from both sides of the equation. Then:

-10x-16-6x=14+6x-6x\\\\-16x-16=14

 Step 3: You must apply the Addition property of Equality and add 16 to both sides of the equation. Then:

-16x-16+16=14+16\\\\-16x=30

Step 4: You must apply the Division property of Equality and divide both sides by -16. Then:

\frac{-16x}{-16}=\frac{30}{-16}\\\\x=\frac{30}{-16}\\\\x=-\frac{15}{8}

6 0
3 years ago
Other questions:
  • Which number produces a rational number when multiplied by 0.4
    12·2 answers
  • Gia's bus route to school is 5 1/2 miles. The bus route home is 1 3/5 times as long. How long is Gia's bus route home?
    6·1 answer
  • Approximately how many degrees are in the measure of an interior angle of a regular eight sided polygon? 45 135 180 225
    10·2 answers
  • Mr. Hershman has purchased a farm that is in the shape of a rectangle. The dimensions of the piece of land are 4.74.7 km by 2.58
    11·1 answer
  • A talent competition on television had five elimination rounds. After each elimination, only one-third of the contestants were s
    14·2 answers
  • (Sec. 2.3) A restaurant having a grand opening is allowing visitors to try 6 different free samples from a selection. Options fo
    13·1 answer
  • A quality control engineer at a potato chip company tests the bag filling machine by weighing bags of potato chips. Not every ba
    11·1 answer
  • 4379_ 1243 işleminde eksilen sayıyı en yakın sayıyı en yakın yüzlüğe ,çıkan sayıyı ise en yakın binliğe yuvarlayıp tahmin sonucu
    14·1 answer
  • SOMEONE PLEASE HELP ME!
    11·1 answer
  • If Wendell creates a scale drawing using the scale 1 inch to 10 feet, what will the dimensions of the deck in the scale drawing
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!