VelizarAvramov

Greater Number

Mar 19th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 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 BiggerInteger
  8. {
  9.     class BiggerNumber
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Enter two integers : ");
  14.             int firstNum = int.Parse(Console.ReadLine());
  15.             int secondNum = int.Parse(Console.ReadLine());
  16.             if (firstNum > secondNum)
  17.             {
  18.                 Console.WriteLine("Greater number is " + firstNum);
  19.             }
  20.             else
  21.             {
  22.                 Console.WriteLine("Greater number is " + secondNum);
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment