diff options
author | | 1970-01-01 00:00:00 +0000 |
---|---|---|
committer | | 2025-01-08 04:13:03 +0000 |
commit | 1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf (patch) | |
tree | 94641926a7cc648db2f1c5e93d22b3a9199dda1d /sum/Sum/Program.cs | |
parent | string guess (diff) | |
download | cs-1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf.tar cs-1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf.tar.gz cs-1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf.tar.bz2 cs-1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf.tar.xz cs-1656f73d49dbeb9b624ba745cc23b94ac9c7a0bf.zip |
sum
Diffstat (limited to 'sum/Sum/Program.cs')
-rw-r--r-- | sum/Sum/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sum/Sum/Program.cs b/sum/Sum/Program.cs new file mode 100644 index 0000000..c541bb0 --- /dev/null +++ b/sum/Sum/Program.cs @@ -0,0 +1,6 @@ +Console.Write("Enter a number: "); +int num1 = Int32.Parse(Console.ReadLine()); +Console.Write("Enter another number: "); +int num2 = Int32.Parse(Console.ReadLine()); +int sum = num1 + num2; +Console.WriteLine("The sum is: " + sum); |