Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("The value of the 1st variable: ");
- int a =Int32.Parse(Console.ReadLine());
- Console.Write("The value of the 2nd variable: ");
- int b= Int32.Parse(Console.ReadLine());
- a = a + b;
- b = a - b;
- a = a - b;
- Console.WriteLine("---------------------------------------");
- Console.WriteLine("The value of the 1st variable: "+a);
- Console.WriteLine("The value of the 1st variable: "+b);
- Console.Write("Press a key to close the application");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement