Computer Science, asked by bbFtfv, 1 month ago

String s = "mom" +32 + (5+2)+ "dad" *​

Answers

Answered by dreamrob
0

Given:

String s = "mom" + 32 + (5+2) + "dad";

Output:

mom327dad

Explanation:

For concatenation of string and integer we use + operator.

String + Integer = String

Data type of s is string.

s = "mom" + 32 + (5+2) + "dad"

s = "mom" + 32 + 7 + "dad"

s = "mom327dad"

So, the output is mom327dad.

Similar questions