5.11 Pattern Example in Java for Beginners Tutorial | Lecture

Java

Video is ready, Click Here to View ×


For code click here:
http://goo.gl/xOgi37

Check out our website: http://www.telusko.com

Follow Telusko on Twitter: https://twitter.com/navinreddy20

Follow on Facebook:
Telusko : https://www.facebook.com/teluskolearnings
Navin Reddy : https://www.facebook.com/navintelusko

Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20

Subscribe to our other channel:
Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1
Telusko Hindi…

21 thoughts on “5.11 Pattern Example in Java for Beginners Tutorial | Lecture

  1. i used this logic
    public class ZeroOnePattern {
    public static void main(String a[]){

    for(int i=1;i<=5;i++){
    for(int j=i;j>=1;j–){

    if(j%2!=0){
    System.out.print(1);
    }
    else{
    System.out.print(0);
    }

    }
    System.out.println("");
    }

    }
    }

  2. I solved it like this,using stars really helped 😀

    public static void main(String[] args) {

    for(int i=0;i<10;i++) {
    for(int j=0;j<i;j++) {

    System.out.print(j%2^i%2);
    }
    System.out.println();
    }

    }

    }

Leave a Reply to Poy Poy Cancel reply

Your email address will not be published. Required fields are marked *