CopyPastor

Detecting plagiarism made easy.

Score: 0.8114557266235352; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2017-01-04
by nzala

Original Post

Original - Posted on 2017-01-04
by Ashwini.patil



            
Present in both answers; Present only in the new answer; Present only in the old answer;

int w = 7; System.out.println("Here is your pattern....!!!"); for (int i = 1; i <= 5; i++) { //Printing i spaces at the beginning of each row for (int j = 1; j < i; j++) { System.out.print(" "); } //Printing i to rows value at the end of each row for (int j = 1; j <=w; j++) { System.out.print(j+" "); } w = w - 2; System.out.println(); }
Try this :)
int a = 1; int b = 4; int m = 4;
for (int i = 1; i <= 4; i++) { for (int c = 1; c <= m; c++) { text.append(" "); } for (int k = 1; k <= b; k++) { String result = String.valueOf(k); text.append(result); } a = a + 2; b--; m++; text.append("\n"); }

        
Present in both answers; Present only in the new answer; Present only in the old answer;