#include <stdio.h> int main() { int n=3; for(int i=0;i<n;i++){ for(int j=0;j<2*i+1;j++){ printf("*"); } printf("\n"); } return 0; }
To embed this program on your website, copy the following code and paste it into your website's HTML: