So I got my program to print an inverted right angle triangle using asterisks but I cannot for the life of me figure out how to do it with while loops. This is what I've got as my for loop if that helps:
Any help is greatly appreciated!Code:#include <stdio.h> main(){ int i, j; for(i =1; i<=5; i++){ for (j=5; j>=i; j--){ printf("*"); } printf("\n"); } return 0; }