Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 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 ConsoleApp2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Podaj dwie liczby: ");
  14.             int a = int.Parse(Console.ReadLine());
  15.             int b = int.Parse(Console.ReadLine());
  16.  
  17.             if(a > b)
  18.             {
  19.                 Console.WriteLine("a jest wieksze " + a);
  20.             } else if( b > a)
  21.             {
  22.                 Console.WriteLine("b jest wieksze " + b);
  23.             }
  24.             else
  25.             {
  26.                 Console.WriteLine("sa rowne " + a);
  27.             }
  28.             Console.Read();
  29.         }
  30.        
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement