Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# add two int variables

int a = 1039; 
int b = 7056; 
int newNumber = int.Parse(a.ToString() + b.ToString());
//Or
int newNumber = Convert.ToInt32(string.Format("{0}{1}", a, b));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #int #variables
ADD COMMENT
Topic
Name
5+1 =