Added code to cleanup the variables at the end of the script

This commit is contained in:
2018-09-26 11:17:37 -04:00
parent b63ca10669
commit 2468bd4f80
5 changed files with 24 additions and 15 deletions

View File

@@ -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;