Advertisement
furkankahraman18

PI Works Technical Questionnaire - SW Support

Mar 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp2
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.Write("The value of the 1st variable: ");
  10.             int a =Int32.Parse(Console.ReadLine());
  11.             Console.Write("The value of the 2nd variable: ");
  12.             int b= Int32.Parse(Console.ReadLine());
  13.             a = a + b;
  14.             b = a - b;
  15.             a = a - b;
  16.             Console.WriteLine("---------------------------------------");
  17.             Console.WriteLine("The value of the 1st variable: "+a);
  18.             Console.WriteLine("The value of the 1st variable: "+b);
  19.             Console.Write("Press a key to close the application");
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement