Hey. Seems like you've made some progress. Thanks great! Below is my solution but as noted previously, there are many. Hope it helps!
/**
* @file printV.c
* @description Prints a V shape.
**/
#include <stdio.h>
void printV(int);
int main() {
printV(4); // Change # to change the number of rows.
}
void printV(int numRows) {
int i,j;
int cols = (numRows * 2) - 1;
char vChar = '#';
char emptyChar = ' ';
for(i=1; i <= numRows; i++) {
for(j=1; j <= cols; j++) {
if(i==j || i+j == numRows*2)
printf("%c", vChar);
else
printf("%c", emptyChar);
}
printf("\n");
}
}