Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ExchangeIfGreater
- {
- static void Main()
- {
- Console.WriteLine("Enter two numbers: ");
- double a = double.Parse(Console.ReadLine());
- double b = double.Parse(Console.ReadLine());
- if (a > b)
- {
- Console.WriteLine(b + " " + a);
- }
- else
- {
- Console.WriteLine(a + " " + b);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment