Dong_Minh_Doxygen
|

Static Public Member Functions | |
static List< int > | Factorization (int num) |
The factorization will find the prime numbers, place it in the list and repeat until factorization can no longer be done. After that, return the list so it can be displayed. More... | |
static int | GCD (int a, int b) |
The greatest common demonitor (GCD) will take in the numbers and will find the GCD value, then return it to display later. More... | |
static int | LCD (int a, int b) |
The least common denominator (LCD) will take in the numbers and will find the LCD value, then return it to display later. More... | |
static int | CF (int a, int b) |
The comomn factors will be found when two numbers are input into this More... | |
Static Private Member Functions | |
static void | Main (string[] args) |
The main function to run the entire program. This program will ask the user to input two numbers, then the program will calculate the GCF and LCD automatically. Also, it will display to the user with some output. More... | |
Detailed Description
Definition at line 9 of file Program.cs.
Member Function Documentation
◆ CF()
|
static |
The comomn factors will be found when two numbers are input into this
- Pseudo Code
- Continue to loop until the highest common factor is found
- Parameters
-
a Integer A Value b Integer B Value
- Returns
- Returns the List
Definition at line 140 of file Program.cs.

◆ Factorization()
|
static |
The factorization will find the prime numbers, place it in the list and repeat until factorization can no longer be done. After that, return the list so it can be displayed.
- Pseudo Code
- If there are any 2s, take it out.
- If there are any other primes, take it out.
- If the number is not 1, then whatever is left is prime.
- Parameters
-
num Integer list
- Returns
- Returns the List
Definition at line 29 of file Program.cs.

◆ GCD()
|
static |
The greatest common demonitor (GCD) will take in the numbers and will find the GCD value, then return it to display later.
- Pseudo Code
- If a is greater than b, a = a % b
- If b is greater than a, b = b % a
- Parameters
-
a Integer A Value b Integer B Value
- Returns
- Returns values of a and b
Definition at line 76 of file Program.cs.

◆ LCD()
|
static |
The least common denominator (LCD) will take in the numbers and will find the LCD value, then return it to display later.
- Pseudo Code
- Store the values if a > b or b > a for num1 and num2 respecitvely (both)
- Keep looping for the lowest common deonimator until the LCD is satisfied
- Parameters
-
a Integer A value b Integer B value
- Returns
- Returns the number for LCD
Definition at line 104 of file Program.cs.

◆ Main()
|
staticprivate |
The main function to run the entire program. This program will ask the user to input two numbers, then the program will calculate the GCF and LCD automatically. Also, it will display to the user with some output.
- Parameters
-
args
- Returns
- Loops if Y/y, Stops if N/n
Definition at line 163 of file Program.cs.

The documentation for this class was generated from the following file:
- D:/Google Drive/ODU/Documents/2018/MSIM 408 - Introduction to Game Development/P1/P1_Base(1)/P1_Base/P1_Base/Program.cs
Generated by
