Created
October 8, 2015 14:07
-
-
Save erikdietrich/06cd77ae1ee52f6ee6b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace CodeReadability | |
{ | |
public class Arithmetic | |
{ | |
public static int FirstProcessNumberA(int number) | |
{ | |
return number * 12; | |
} | |
public static int SecondProcessNumber(int number) | |
{ | |
int a = number * 12; | |
int b = a - 4; | |
int c = 2 * b; | |
int d = 3 - c; | |
return 14 + d; | |
} | |
public static int ThirdProcessNumber(int number) | |
{ | |
int a = 3 * number; | |
int b = a + 5; | |
int c = b - 3; | |
int d = 2 * c; | |
int e = d - 10; | |
int f = e - 2; | |
int g = 25 - f; | |
int h = 12 + g; | |
int i = 2 * h; | |
return i + 6; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment