Top 100+ Sql Server Interview Questions
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Triangle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic SEVEN
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=7;i>1; i--)
{
for (int j=1;j>=8-i;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Tringle pattern Program- Logic SIXTH
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<7; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic FIVE
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=0;i<6; i++)
{
for (int j=i;j>=1;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic One
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle1
{
Public static void main(String args[])
{
for (int i=1;i<=6; i++)
{
for (int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Four
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=i;j>0;j--)
{
System.out.print("* ");
}
System.out.println();
}
}
}
Java Square pattern Program- Logic Three
*
* *
* * *
* * * *
* * * * *
* * * * * *
Class Tringle3
{
Public static void main(String args[])
{
for (int i=1;i<7; i++)
{
for (int j=1;j<i+1;j++)
{
System.out.print("* ");
}
System.out.println();
}
}
}
No comments:
Post a Comment