#include <stdio.h> int main(){ int i,j, n; printf("Please enter a number: "); scanf("%d", &n); for(j=0;j<n;j=j+1){ for(i=0;i<j+1;i=i+1){ printf("*"); } printf("\n"); } return 0; }
#include <stdio.h> int main(){ int i,j, n; printf("Please enter a number: "); scanf("%d", &n); for(j=0;j<n;j=j+1){ for(i=0;i<j+1;i=i+1){ printf("*"); } printf("\n"); } return 0; }