In reply to Shashank Gurijala:
your code partially correct:
1. diagonal should be right to left and not left to right
2. diagonal value should be range between 1 to 100 any number i.e [i][j] == [i-1][j+1]
3. you forget before diagonal increment and after diagonal decrement in a row
4. please observe above matrix example and read my comments to get clarity.