Click here to Skip to main content
15,921,530 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
write a program that takes an integer argument and prints the following pattern, using its digits. Shown for n = 4632
21
321
654321
4321
Posted
Updated 11-Dec-13 4:49am
v3
Comments
Peter Leow 11-Dec-13 10:29am    
Try it on your own first.
Sergey Alexandrovich Kryukov 11-Dec-13 10:51am    
Sounds rude, as if you ordered someone to do some work. Not a question. You are at the wrong forum.
—SA
Maarten Kools 11-Dec-13 11:00am    
I like the tags you've added :)
Sergey Alexandrovich Kryukov 11-Dec-13 11:10am    
Not mine, other people added them a while ago, I'm only using existing ones, as there are way too many posts like that.
—SA
baliram bhande 12-Dec-13 1:52am    
what u tried ? first try you if any error or difficulties then ask

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

But consider this, when you review the direction you want your career to move in: Giving instructions to anybody is not going to work if you don't give the full instructions...

Doesn't make any difference here (because we aren;t going to do it for you anyway) but if you want a particular pattern, it probably helps if you the show or describe the pattern you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900