Professional Documents
Culture Documents
clc
clear all
close all
n=input('Enter n=');
for i=1:n;
for j=1:j-1
fprintf(' T');
fprintf('');
end
fprintf('\n');
end
The program should enforce the user to only use a single character as the symbol.
clc
clear all
close all
x = [];
for i = 1 : 7
x = strcat(x,'Tx');
disp(x)
end
clc
clear all
close all
x = [];
for i = 1 : 7
x = strcat(x,'Ty');
disp(x)
end
clc
clear all
close all
x = [];
for i = 1 : 7
x = strcat(x,'T');
disp(x)
end