mirror of
https://bitbucket.org/Mattrixwv/octavefunctions.git
synced 2025-12-07 03:03:57 -05:00
Added code to cleanup the variables at the end of the script
This commit is contained in:
@@ -36,12 +36,13 @@ end
|
||||
%When the last number is not divisible by a prime number it must be a prime number
|
||||
factors(end + 1) = tempNum;
|
||||
|
||||
%Remove the variables
|
||||
%Print the answer
|
||||
max(factors)
|
||||
|
||||
%Cleanup your variables
|
||||
clear counter;
|
||||
clear tempNum;
|
||||
clear answer;
|
||||
clear number;
|
||||
clear primeNums;
|
||||
|
||||
%Print the answer
|
||||
max(factors)
|
||||
clear factors;
|
||||
|
||||
Reference in New Issue
Block a user