We know that
+ is used as addition and
* as multiplication in arithmetic. The (
+) plus operator can be used as a joining operator i.e., concatenation. The (
*) operator can also be used to multiply the number with a string.
In this example, we have joined the two numbers ‘7890’ with ‘1234’ which are treated as strings using the ‘+’ operator
In this example, we have multiplied the string ‘ Big Binary ’ thrice to print it three times.