[Solved] Drawing a rectangle with a certain angle of degree

It depends on the drawing environment you’re using. For example, if you use HTML5 canvas, you could rotate the canvas, draw the rectangle and then return the canvas to the original position, obtaining the “rotated” rectangle. You should check your environment documentation for further info or give more info in the question so we can … Read more

[Solved] print empty asterisk triangle c

you just need to think that first line should be filled with *. Second thing is first character of every line should be *. and last character should also be *. and in between you need to fill spaces. int main() { int n=6; for(int i=n-1;i>=0;i–) // using n-1, bcz loop is running upto 0 … Read more