- 0
Notifications Mark All Read
- Login
- Get Prime
Problem 13
Access Denied!
To view this page you have to login first
Login here -
Trivia
Did you know 1 million people use PrepInsta everyday?
Notifications Mark All Read
To view this page you have to login first
Login here -
Did you know 1 million people use PrepInsta everyday?
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( );
}
}
}