How to write a procedure which takes integer N as its IN parameter and print a number series (up to N) in the
Following format.
1
2 2
3 3 3
4 4 4 4
: - - -
N N N N N…………N

by taking a piece of paper and starting to figure out how to do it.
When you know that, you can fire up an editor and write your code.

you simply need to write a loop.
and no need to create a procedure at all for that and you need to remember that printing somthing like that is not the main purpose of defining procedures in database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.