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

patterns #258

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .idea/.gitignore
Empty file.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/coder.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added AR-VR/.DS_Store
Binary file not shown.
Binary file added AR-VR/TestAR_TestAR_2024cse1121_3/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import java.util.*;
class Pattern1 {

public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();

for(int x=1;x<=n;x++)
{
for(int y=1;y<=x;y++)
System.out.print("*\t");

System.out.println();
}
sc.close();
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import java.util.*;

public class Pattern2 {

public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();

for(int x=n;x>=1;x--)
{
for(int y=1;y<=x;y++)
System.out.print("*\t");

System.out.println();
}
sc.close();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import java.util.*;

public class Pattern3 {

public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();

for(int x=1;x<=n;x++)
{
for(int y=n-1;y>=x;y--)
System.out.print("\t");
for(int y=1;y<=x;y++)
System.out.print("*\t");

System.out.println();
}
sc.close();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import java.util.*;

public class Pattern4 {

public static void main(String[] args) {
Scanner scn = new Scanner(System.in);

// write ur code here

Scanner sc=new Scanner(System.in);
int n=sc.nextInt();

for(int x=n;x>=1;x--)
{
for(int y=n-1;y>=x;y--)
System.out.print("\t");
for(int y=1;y<=x;y++)
System.out.print("*\t");

System.out.println();
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import java.util.*;

public class Pattern5 {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();

for(int x=1;x<=n;x++)
{
for(int y=1;y<=n;y++)
{
if(x==y)
System.out.print("*\t");
else System.out.print("\t");
}
System.out.println();
}
sc.close();
}
}
Binary file added Guide/.DS_Store
Binary file not shown.