I have to print a triangle in C++ where the length is double the height and base of the triangle it is to be isosceles
this is my Isosceles code. how do I change the length base and width so that the length is double. We are only allowed to use stuff up to for loops nothing too fancy. Thank you!
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i < 1; ++i) {
printf(" *\n"
" *\n"
" **\n"
" ***\n"
" ****\n"
" *****\n"
" ******\n"
" *******\n"
" ********\n"
" *********\n"
" **********\n"
}
return 0;
}