Add parathensesis

Input :12344
Output :(12344)

How to do , i have used replace but not working

Hi @Ananya1

Say the input in a numeric variable like Int, and the output is a string.

int Number = 12344
String Var1 = “(” + Number.ToString + “)”

This will give you the desired output…

2 Likes

Thank You

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.