Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
string
str0 =
"50"
;
-
int
val0 = Convert.ToInt32(str0);
-
string
str1 =
"100"
;
-
int
val1 = Convert.ToInt32(str1);
-
Console.WriteLine(
"Сумма : {0}"
, (val0+val1));
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
string
str0 =
"50"
;
-
int
val0 = Convert.ToInt32(str0);
-
string
str1 =
"100"
;
-
int
val1 = Convert.ToInt32(str1);
-
Console.WriteLine(
"Сумма : {0}"
, (val0+val1));
-
Console.ReadKey();
-
return
0;
-
}
}
Сумма : 150