Skip to content

Instantly share code, notes, and snippets.

@erikdietrich
Created October 8, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikdietrich/06cd77ae1ee52f6ee6b5 to your computer and use it in GitHub Desktop.
Save erikdietrich/06cd77ae1ee52f6ee6b5 to your computer and use it in GitHub Desktop.
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