Hi,
I've ben sent a exercise where I have to print to the console (using C) a triangle using three different symbols in the following way:
1. The program must ask how many rows the triangle will have.
2. The program will print the triangle in the following way:
From outside to inside, the first triangle will be formed of *, the one inside it will be -, the one inside again will be $ and then the other way around...
I managed to print it using all the same symbol, but cannot manage to get different symbols inside each triangle...
Can anyone give me a hand?
Thanks in advanced for the help!!
I've ben sent a exercise where I have to print to the console (using C) a triangle using three different symbols in the following way:
1. The program must ask how many rows the triangle will have.
2. The program will print the triangle in the following way:
From outside to inside, the first triangle will be formed of *, the one inside it will be -, the one inside again will be $ and then the other way around...
I managed to print it using all the same symbol, but cannot manage to get different symbols inside each triangle...
Can anyone give me a hand?
Thanks in advanced for the help!!
Last edited: