hey guys, just wondering how I can change this code to C++... It's an old code my brother actually made!
#include <stdio.h>
const int ROW = 4;
const int COL = 13;
int main(void) {
int i, c, max = COL;
for(i = 0;i<ROW;i++) {
for(c=0;c<COL;c++) {
if(c == i+1 || c == 6 || c == max-2)
putchar(' ');
else
putchar('*');
}
--max;
putchar('\n');
}
return 0;
}