Help me in solving PPSC101 problem

My issue

My code

// Update the code below to solve the problem



#include <stdio.h>

int main() {
    int n;
    scanf("%d", &n);
 for (int i=0;i<n;i++){
     for(int j=0;j<=i;j++){
         printf("*");
     }
 printf("\n");
}
    return 0;
}

    

Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC25/problems/PPSC101