Advertisement
Guest User

Problem 5

a guest
Dec 13th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 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_5
  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.             Console.WriteLine("Please write c: ");
  18.             double c = double.Parse(Console.ReadLine());
  19.             if ((a > b) && (a > c)) Console.WriteLine("The biggest is: " + a);
  20.             if ((b > a) && (b > c)) Console.WriteLine("The biggest is: " + b);
  21.             if ((c > b) && (c > a)) Console.WriteLine("The biggest is: " + c);
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement