Advertisement
Guest User

Problem 1

a guest
Dec 13th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 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 Task_1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Please write a: ");
  14.             double a = double.Parse(Console.ReadLine());
  15.             Console.WriteLine("Please write b: ");
  16.             double b = double.Parse(Console.ReadLine());
  17.  
  18.             if (a > b)
  19.             {
  20.                 Console.WriteLine(b);
  21.                 Console.WriteLine(a);
  22.             }
  23.             else
  24.             {
  25.                 Console.WriteLine(a);
  26.                 Console.WriteLine(b);
  27.             }
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement