2 definitions by Moumen_El_Gamed

A variable that you use and redefine throughout the code without printing it out.
arr = input('Enter your array: ');
r,c = size(arr);
for j = 1:c

sum = 0;

for i = 1:r

sum = sum + arr(i,j);

end

arr2(j) = sum;
end
disp(arr2);

Oh man! That "sum" variable is a WHORE VARIABLE!
by Moumen_El_Gamed October 24, 2018
Get the Whore Variable mug.
A variable that you use throughout a code without printing it.
arr = input('Enter your array: ');
r,c = size(arr);
for j = 1:c

sum = 0;

for i = 1:r

sum = sum + arr(i,j);

end

arr2(j) = sum;
end
disp(arr2);

Oh man, that "sum" variable is a whore variable!
by Moumen_El_Gamed October 24, 2018
Get the Whore Variable mug.