Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit Pattern14 #14

Closed
ErSKS opened this issue Jul 27, 2017 · 26 comments
Closed

Submit Pattern14 #14

ErSKS opened this issue Jul 27, 2017 · 26 comments

Comments

@ErSKS
Copy link
Owner

ErSKS commented Jul 27, 2017

pattern14

@milan604
Copy link

package pattern11;

/**
*

  • @author m-lan
    */
    public class Pattern11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a=0;
      for (int i = 0; i < 5; i++) {

       for (int j = 0; j < i; j++) {
           System.out.printf("%d",a-1);
           
       }
       a++;
       System.out.println("");
      

      }
      }

}

screenshot from 2017-07-27 14-31-37

@raBbn
Copy link

raBbn commented Jul 27, 2017

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package javaapplication18;

/**
*

  • @author Kishorr
    */
    public class JavaApplication18 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf(""+i+" ");
      }
      System.out.println("");
      }
      }

}
capture11

@jagdish4249
Copy link

package pattern12;

/**
*

  • @author jagdish
    */
    public class Pattern12 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int x = 0;
      for (int i = 1; i <= 4; i++) {
      for (int j =1 ; j <= i ; j++) {
      System.out.print(x);
      }
      x++;
      System.out.println();
      }
      }

}

image

@pujanchangubhari73
Copy link

package forpattern3;

/**
*

  • @author Balkrsihna
    */
    public class ForPattern3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a = 0, n = 4;
      for (int i = 1; i <= n; i++) {

       for (int j = 1; j <= i; j++) {
      
           System.out.printf("%d", a);
      
       }
       System.out.println("");
       a++;
      

      }
      }

}

image

@maheshyakami
Copy link

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern;

/**
*

  • @author mahesh
    */
    public class Pattern {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int b = 0;
      for (int i = 5; i > 0; i--) {
      for (int j = 5; j >= i; j--) {
      System.out.print(b);
      }
      System.out.println(" ");
      b++;
      }
      System.out.println();
      }

}
screen shot 2017-07-27 at 5 19 50 pm

@sthaanu
Copy link

sthaanu commented Jul 27, 2017

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern8;

/**
*

  • @author admin
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {

           System.out.print(i);
      
           System.out.print("\t");
      
       }
      
       System.out.println(" ");
      

      }

    }

}
capture

@karmi214
Copy link

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern8;

/**
*

  • @author Anish
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j < i + 1; j++) {
      System.out.print(i + " ");
      }
      System.out.println("");
      }
      }

}
p8

@sajanbasnet75
Copy link

/*

To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
/
package assignment2;
/*
*

@author LORDsajan
*/
public class Assignment2 {

/**

@param args the command line arguments
/
public static void main(String[] args) {
// pattern8
System.out.println("\nPattern8");
int z = -2;
for (int i = 1; i <= 5; i++) {
z++;
for (int j = 1; j < i; j++) {
System.out.print(z + " ");
}
System.out.println(" ");
}
}
}

8

@kiir33
Copy link

kiir33 commented Jul 27, 2017

System.out.println("\nPattern 11\n----------------------");
for (i = 0; i < 5; i++) {
for (j = 0; j <= i; j++) {
System.out.print(i + "\t");
}
System.out.println("");
}

Output:
capture

@syslin
Copy link

syslin commented Jul 27, 2017

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package patterntwo;

/**
*

  • @author dell
    */
    public class PatternEight {

    public static void main(String[] args) {
    int x = 0;
    for (int i = 0; i < 5; i++) {
    for (int j = 0; j <= i; j++) {
    System.out.printf("%d", x);

         }
         x++;
         System.out.println();
    
     }
    

    }

}
output
13

@ghost
Copy link

ghost commented Jul 27, 2017

package patt8;

/**
*

  • @author User
    */
    public class Patt8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j <=i; j++) {
      System.out.print(i);
      }
      System.out.println(" ");
      }
      }
      Output:
      patt8

@kajalmaharjan
Copy link

    //PATTERN 10
    int c = 1;
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 5; j++) {
            if (i >= j) {
                System.out.printf("%d ", i);
                c++;
            }
        }
        System.out.printf("\n");
    }

image

@RakenShahi
Copy link

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package q11;

/**
*

  • @author DELL
    */
    public class Q11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      int a=1;
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);
      a++;

       }
       System.out.print("\n");
      

      }
      }

}

OUTPUT
11

@rabina12
Copy link

package p11;

/**
*

  • @author Albina Praz
    */
    public class P11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {

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

      }

    }

}
p11

@Roshantwanabasu
Copy link

Code:
/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern14;

/**
*

  • @author NiiRosh
    */
    public class Pattern14 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int k = 0;
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf("%d", k);

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

      }
      }

}

Output:
pattern14

@rivab
Copy link

rivab commented Jul 27, 2017

package star8;

/**
*

  • @author DELL
    */
    public class Star8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {

      // TODO code application logic here

      for (int i = 0; i < 5; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);

       }
       System.out.print("\n");
      

      }
      }

}
star8

@duwalshraddha
Copy link

Code
package pattern11;

/**
*

  • @author Lenovo
    */
    public class Pattern11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.print(i);
      }
      System.out.println("");
      }
      }

}
11

@Roshanshrestha7
Copy link

public class Ass9 {

/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
    int a = 0;
    for (int i = 0; i < 5; i++) {
        for (int j = 0; j < i + 1; j++) {
            System.out.printf("%d", a);
        }
        System.out.println("");
        a++;
    }

// TODO code application logic here
}

}
image

@Sudan15423
Copy link

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package day3;

/**
*

  • @author dragon15423
    */
    public class Day3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < i; j++) {
      System.out.print(i - 1);
      }
      System.out.println();
      }
      }
      Output:
      8

@ajay987
Copy link

ajay987 commented Jul 29, 2017

for (int i = 0; i < 4; i++) {
for (int j = 0; j <=i; j++) {
System.out.print(i);
}
System.out.println();
}
patt14sol

@rituratnam
Copy link

CODE:
package pattern8a;

/**
*

  • @author Lavalesh
    */
    public class Pattern8a {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i < 4; i++) {
      for (int j = 0; j <= i; j++) {
      System.out.printf(""+i+" ");
      }
      System.out.println("");
      }
      }
      }
      Output:
      pattern8a

@Rajjushrestha
Copy link

public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < i + 1; j++) {
System.out.print(i);
System.out.print("\t");

        }
        System.out.println("");

    }

14

@sarumdr
Copy link

sarumdr commented Jul 29, 2017

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern8;

/**
*

  • @author sarumdr
    */
    public class Pattern8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j<=i; j++) {
      System.out.print(i);
      }
      System.out.printf("\n");
      }
      }

}

OUTPUT
image

@SusanCB
Copy link

SusanCB commented Jul 29, 2017

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pat11;

/**
*

  • @author nissus
    */
    public class Pat11 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <=3; i++) {
      for (int j = 0; j < i+1; j++) {
      System.out.print(i);
      }
      System.out.println("");
      }
      // TODO code application logic here
      }

}
pat11

@sanzeevtamang
Copy link

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package pattern8;

/**
*

  • @author Eev
    */
    public class PatterN8 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      int x=0;
      for(int i=1; i<=5; i++)
      {
      for(int j=1;j<=i; j++)
      {
      System.out.printf("%d",x);

      }
      x++;
      System.out.println();

    }
    }

}
image

@luckydivya
Copy link

package pattern3;

/**
*

  • @author PC
    */
    public class Pattern3 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      for (int i = 0; i <= 3; i++) {
      for (int j = 1; j <= i + 1; j++) {
      System.out.print(i);

       }
       System.out.println("");
      

      }
      }
      output

@ErSKS ErSKS closed this as completed Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests