Home /
Answered Questions /
Other /
c-code-trying-to-get-a-function-to-draw-an-ascii-art-and-when-the-value-of-int-n-increases-the-lengt-aw536
(Solved): C Code Trying To Get A Function To Draw An Ascii Art, And When The Value Of Int N Increases, The Len...
C Code
Trying to get a function to draw an ascii art, and when the value of int n increases, the length of art increases.
Void draw_tail(int n);
For example, if n=1, the art should look like this.
// / \
For n=3, it should look like:
// / / / \
We have an Answer from Expert
View Expert Answer
Expert Answer
#include<stdio.h> void draw_tail(int n) { // Print the 2 forward slashes printf("// "); // Iterate n times for(int i
We have an Answer from Expert
Buy This Answer $6
Buy This Answer $6
-- OR --
Subscribe To View Unlimited Answers
Subscribe $20 / Month
Subscribe $20 / Month