Advertisement
AvengersAssemble

Untitled

Sep 2nd, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication11
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.ForegroundColor = ConsoleColor.Cyan;
  14.             for (int i = 0; i <35; i++)
  15.             {
  16.                 Console.Write("Please enter your first number: ");
  17.                 int num1 = int.Parse(Console.ReadLine());
  18.                 Console.Write("Please enter your second number: ");
  19.                 int num2 = int.Parse(Console.ReadLine());
  20.                 if (num1 > num2)
  21.                 {
  22.                     Console.WriteLine(num1 - 1);
  23.                     Console.WriteLine(num2 + 1);
  24.                 }
  25.                 else
  26.                 {
  27.                     Console.WriteLine(num2 - 1);
  28.                     Console.WriteLine(num1 + 1);
  29.                 }
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement