#include <stdio.h> int main(void) { int n, i; printf("inserisci numero\n"); scanf("%d", &n); for(i=1; i<=n; i=i+1){ for (int j = 1; j <= i; j++) { printf("*"); } printf("\n"); } return 0;}
12
inserisci numero * ** *** **** ***** ****** ******* ******** ********* ********** *********** ************
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!