No one's complete your homework for you. (It's also discouraged here at DaniWeb)
To get you started, you have to use Nested loops.
The outer loop can control the number of lines, and the inner loop can control the number of numbers per line (which will be the same as line no. )
To obtain the actual numbers which are being displayed, you can use a variable which is initialized to 1 and the incremented as required (figure that out)
Next time please post your own attempt while requesting help..
**how to solve invalid keystore error in android studio here is error report----------------------->
here is error report--------> error:Error:java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key palash from store "D:\MyApplication3.idea\workspace.xml": Invalid keystore format ...