Generation

generate functionTue, 11 Apr 2023

make a triangle

#include <stdio.h> int main(void){ int rows = 5; int i, j; for(i = 1; i <= rows; i++){ for(j = 1; j <= i; j++){ printf("*"); } printf("\n"); } return 0; }

Want to kickstart your project?Use the new AI Studio to create your code