CS_0002_Variable1
Result ;
x = 3
y = 7
The value of z = x+y that is:10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace variables1
{
class Program
{
static void Main(string[] args)
{
int x;
x = 3;
int y;
y = 7;
int z;
z = x + y;
Console.WriteLine("The value of
z = x+y that is:" +z);
Console.ReadLine();
}
}
}
Comments
Post a Comment