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 Pattern1 #1

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

Submit Pattern1 #1

ErSKS opened this issue Jul 27, 2017 · 32 comments

Comments

@ErSKS
Copy link
Owner

ErSKS commented Jul 27, 2017

Way to submit your Code and Output:

Code:
package pattern1;

/**
*

  • @author ErSKS
    */
    public class Pattern1 {

    /**

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

}

Output
pattern1

@kiir33
Copy link

kiir33 commented Jul 27, 2017

package pattern;

/**
*

  • @author KIRANN
    */
    public class Pattern1 {

    /**

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

Output
capture

@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 javaapplication11;

/**
*

  • @author Kishorr
    */
    public class JavaApplication11 {

    /**

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

}
capture

@SusanCB
Copy link

SusanCB commented Jul 27, 2017

package pat1;

/**
*

  • @author Susan
    */
    public class Pat1 {

    /**

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

       }
       System.out.println("");
      

      }
      // TODO code application logic here
      }

}
capture

@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 star1;

/**
*

  • @author DELL
    */
    public class Star1 {

    /**

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

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

      }
      }

}

OUTPUT
capture

@Roshanshrestha7
Copy link

package ass3;

/**
*

  • @author PURUSHOTAM
    */
    public class Ass3 {

    /**

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

}
capture

@milan604
Copy link

milan604 commented Jul 27, 2017

Pattern#1

package pattern1;

/**
*

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

    /**

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

}
Output
screenshot from 2017-07-27 06-32-34

@nabinbikramsah
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 thrda1;

/**
*

  • @author bikram
    */
    public class Thrda1 {

    /**

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

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

      }
      // TODO code application logic here
      }

}
output
capture

@pujanchangubhari73
Copy link

package forpattern4;

/**
*

  • @author Pujan
    */
    public class ForPattern4 {

    /**

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

       for (int j = 1; j<=5; j++) 
       {
       
       System.out.print("*");
      

      }

       System.out.println();
      

    }
    }

}

image

@maheshyakami
Copy link

maheshyakami 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 day2;

import com.sun.java_cup.internal.runtime.Scanner;

/**
*

  • @author mahesh
    */
    public class Day2 {

    /**

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

      //1
      System.out.println("Pattern 1");
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < 5; j++) {
      System.out.print("*");
      }
      System.out.println(" ");
      }
      System.out.println();

    }

}
screen shot 2017-07-27 at 6 40 59 am

@sarumdr
Copy link

sarumdr 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 pattern1;

/**
*

  • @author sarumdr
    */
    public class Pattern1 {

    /**

    • @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 <5; j++) {
      System.out.print("
      ");
      }
      System.out.printf("\n");
      }
      }

}

OUTPUT
pattern1

@jagdish4249
Copy link

package pattern0;

/**
*

  • @author jagdish
    */
    public class Pattern0 {

    /**

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

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

       for (int j = 1; j <= 5; j++) {
       System.out.print("*");    
       }
      

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

}
screenshot from 2017-07-27 06-36-15

@duwalshraddha
Copy link

Code :
package pattern1;

/**
*

  • @author Lenovo
    */
    public class Pattern1 {

    /**

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

}
output

@Roshantwanabasu
Copy link

Code:

package starprintng;

/**
*

  • @author NiiRosh
    */
    public class Starprintng {

    /**

    • @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 < 5; j++) {
      System.out.printf("*");

       }
       System.out.println("");
      

      }
      }

}

Output:
capture

@rabina12
Copy link

*/
package pattern1;

/**
*

  • @author Awal
    */
    public class Pattern1 {

    /**

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

      }
      System.out.println();

    }
    capture

@AmritDuwal
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 astrik.sam;

/**
*

  • @author Amrit Duwal
    */
    public class AstrikSam {

    /**

    • @param args the command line arguments
      /
      public static void main(String[] args) {
      for (int i =0; i <6; i++){
      for(int j=0; j<5;j++)
      {
      System.out.print("
      ");
      }
      System.out.print("\n");
      }
      }

}
capture

@leoprabin10
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 lab5;

/**
*

  • @author Albina Praz
    */
    public class Lab5 {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      //for (int i = 0; i < 10; i++) {
      //System.out.println(++i);
      //System.out.println(i++);
      //if (i % 2 != 0) {
      //System.out.println(i);
      /*int i = 0;
      while (i < 0) {
      System.out.println(i);
      i++;
      }

      do {
      System.out.println(i);
      i++;
      } while (i < 10);*/

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

      }
      System.out.println(i);

    }

}
// TODO code application logic here
capture

@ErSKS ErSKS changed the title Submit Pattern#1 Submit Pattern1 Jul 27, 2017
@sthaanu
Copy link

sthaanu commented Jul 27, 2017

public static void main(String[] args) {

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

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

}

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 pattern1;

/**
*

  • @author Anish
    */
    public class Pattern1 {

    /**

    • @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 < 5; j++) {
      System.out.printf("
      ");
      }
      System.out.printfln("");
      }
      }

}
p1

@sajanbasnet75
Copy link

sajanbasnet75 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 assignment2;

/**
*

  • @author LORDsajan
    */
    public class Assignment2 {

    /**

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

@ghost
Copy link

ghost commented Jul 27, 2017

package pattone;

/**
*

  • @author User
    */
    public class PattOne {

    /**

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

Output:
capture1

@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 daytwo;

/*

@author dell
*/
public class DayTwo {

/**
 * @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 < 5; j++) {
            System.out.print("*\t");
          

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

    }

output
1

@kajalmaharjan
Copy link

//PATTERN_1
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
if (i >= j) {
System.out.printf("* ");

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

image

@rivab
Copy link

rivab commented Jul 27, 2017

package pattern1;

/**
*

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

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

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

      }
      }

}
1

@rituratnam
Copy link

CODE:
public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 5; j++) {
System.out.printf("*");

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

}
Output:

pattern1

@Rajjushrestha
Copy link

//Pattern 1
for (inti = 0; i< 4; i++)
{
for (int j = 0; j < 5; j++)
{
System.out.printf("*");
}
System.out.println();
}
1

@sanzeevtamang
Copy link

sanzeevtamang commented Jul 27, 2017

CODE:

   package day3;

/**
*

  • @author Eev
    */
    public class DaY3 {

    /**

    • @param args the command line arguments
      /
      public static void main(String[] args) {
      // pattern 1
      for (int i = 1; i <= 4; i++) {
      for (int j = 1; j <= 5; j++) {
      System.out.printf("
      ");
      }
      System.out.printf("\n");
      }

    }

}

Output:
pattern 1

@luckydivya
Copy link

Output:
public class Pattern {

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

}
Code:
pattern1

@ghost
Copy link

ghost commented Jul 28, 2017

package javaapplication44;

/**
*

  • @author Samikshya
    */
    public class JavaApplication44 {

    /**

    • @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 < 5; j++) {
      System.out.print("
      ");
      }
      System.out.println(" ");
      }
      }

}

capture

@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 = 1; i < 5; i++) {
      for (int j = 1; j <= 5; j++) {
      System.out.print(" * ");
      }
      System.out.println();
      }
      }
      Output:
      3

@ajay987
Copy link

ajay987 commented Jul 29, 2017

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

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

patternsol1

@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 pat1;

/**
*

  • @author nissus
    */
    public class Pat1 {

    /**

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

       }
       System.out.println("");
      

      }
      // TODO code application logic here
      }

}
pat1

@ragenmah
Copy link

package pattern1;

/**
*

  • @author ragen
    */
    public class Pattern1 {

    /**

    • @param args the command line arguments
      /
      public static void main(String[] args) {
      for (int i = 0; i < 5; i++) {
      for (int j = 0; j < 5; j++) {
      System.out.printf("
      ");
      }
      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