I'm trying to print a triangle like this
but i get this
my code works to make the triangle, but i need it flipped. what part of my code do i edit to do this
n=input('How many rows for right justified triangle do you want ');for i=2:n+1for j=1:i-1fprintf('*');fprintf('');endfprintf('\n');end
Best Answer