Whore Variable
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!
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!
Whore Variable
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!
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!