Now the nested for loop(starts from 1 to i) is used to print the "*" in right-angled triangle pattern or we can say is used to handle the total number of columns in the pattern. Advertisement - This is a modal window. No compatible source was found for this media. Method 2 - ...