:icon_rolleyes::icon_smile::icon_rolleyes:
how to ..algorithm to accept a number 1 to 9 and display a pattern.
like this...

1
21
321
4321
54321

program ka code bhi chale ga.... Please help...
:-/:-/:-/

Welcome to DaniWeb.

Is this for a class? Have you been introduced to loops at all? There are a number of ways you could potentially tackle this problem. Try something, try to think and program through it yourself. If you get stuck, post your code and let us see where you might need some direction.