Hi, how to create a diagonal pattern by the given function
void diagonal(int size, char op)
The function takes in 2 arguments, size and op and displays a diagonal line of op char. for example, diagonal (5,#) will produce the following output.
#
#
#
#
#
Sorry, it doesn't print diagonal
You obviously messed something up.
It works perfectly fine for me.