Logic Pattern

preview_player
Показать описание
In this video , logic pattern example explain with using nested for loop.In this video first we create a pattern in box format and then converted into our format which is in number format.With the help of using this logic we can create many patterns.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

Рекомендации по теме
Комментарии
Автор

i have alternate solution for this if you dont want to use 3rd for loop.. we cn use below code also

public class pattern
{
public static void main(String args[])
{
for(int i=1; i<=4;i++)
{
for(int j=1; j<=4;j++)
{
if(j<i)
{
System.out.print(" ");
}
else
{
System.out.print(j+" ");
}
}
System.out.println("");
}
}
}

ManthanDubal
visit shbcf.ru