I have this code so for but i dont know what to do from here. After the user puts a positive integer in it should post the number like this. Example use 5
After rotating 90 degrees to the right, plots a triangle:
After rotating 180 degrees to the right, plots a triangle:
After rotating 270 degrees to the right, plots a triangle:
I dont know how to put the numbers in i have the code to do it for the first triangle but the rest i do not know how they are just * in the right pattern here is my code so far.
Welcome to the Ranch
You should always use the code button; I have applied it to your post and you can see how much better it looks Unfortunately it highlights your incorrect indentation. If you have } as part of a line, that is bad enough, but you have got three }s in one line. Incorrectly indented code can hide errors which would be obvious in correctly indented code. Have a look at our suggestions about formatting.
Don’t even try to print out triangles in different orientations. Not yet. Start by printing one triangle. Work out on paper how to do that. Don’t even try the others until that works.
I tried your code; what is wrong with the output I saw?
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
ScroogeXHTML - the small and fast RTF to HTML converter library