***?
m neither able to post spaces in the main post nor in the quote...what do i do ??? (
Put it in [CODE]...[/CODE] tags? Use underscores and say you mean spaces?
Experience is a poor teacher: it gives its tests before it teaches its lessons...
Anon.
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
The code in your first post is adding a space between each digit but the last example output you posted shows no spaces between the digits, so which one do you want?
If you look at the relationship between the number of spaces required in the first row and the number of rows you are printing and also look at how the number of spaces changes with each row you should be able to work out how to write a for loop to add the spaces.
Bookmarks