Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Program
- {
- class SortApp
- {
- static void Main(string[] args)
- {
- int x = 76, y = 777, z = 76;
- if(x < y) {
- int tmp = x;
- x = y;
- y = tmp;
- }
- if(x < z) {
- int tmp = x;
- x = z;
- z = tmp;
- }
- if(y < z) {
- int tmp = y;
- y = z;
- z = tmp;
- }
- Console.WriteLine(x + " " + y + " " + z);
- }
- }
- }
Add Comment
Please, Sign In to add comment