Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Problem 13

One comment on “Problem 13”


  • Tahir khan

    class ReverseHollow
    {
    public static void main(String args[])
    {
    int i,j;
    for(i=1;i<=5;i++)
    {
    for(j=1;j<=9;j++)
    {
    if(i==1 || j==i || j==10-i)
    {
    System.out.print("*");
    }
    else
    {
    System.out.print(" ");
    }
    }
    System.out.println( );
    }
    }
    }