From 95af971e7c94b2af6528fc1f2a76e2762f4ce77b Mon Sep 17 00:00:00 2001 From: Shivangi Tripathi Date: Thu, 29 Sep 2022 18:23:33 +0530 Subject: [PATCH 1/4] created HelloWorld.txt --- AR-VR/.DS_Store | Bin 0 -> 8196 bytes AR-VR/TestAR_TestAR_2024cse1121_3/.DS_Store | Bin 0 -> 6148 bytes .../.DS_Store | Bin 0 -> 6148 bytes .../GettingStarted/.DS_Store | Bin 0 -> 6148 bytes .../GettingStarted/Hello World.txt | 1 + Guide/.DS_Store | Bin 0 -> 6148 bytes 6 files changed, 1 insertion(+) create mode 100644 AR-VR/.DS_Store create mode 100644 AR-VR/TestAR_TestAR_2024cse1121_3/.DS_Store create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/.DS_Store create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt create mode 100644 Guide/.DS_Store diff --git a/AR-VR/.DS_Store b/AR-VR/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1821a59c4e80b26fc38cb253e666598b3ffceeb1 GIT binary patch literal 8196 zcmeHM&2G~`5T0!Vb*PYXpi-oAu*5Y|<0Q~lT-*>2T!FNH~uzbdmJKS&2i`um5IoL3M}oy{6@sM z&?~Z~kK6+?#1r|HP@f{I;bX)wU>GnA7zPXjhJj6F0QYPm);0HiHEOJ3z%cM%G9a!G zHdLUiajsBaI$&f804(6J6tqzX$QWCrt8uPShGI@tJun^0bcw-KIL2+^4sJz zDx8>Jndu6J$<+~OOLtwXT>ILb%W>NmEv zUAS|1$J()Wt+(EQPrQ*o8s|+vdo6lx&g0;s?FTQT-lS7{@Qf!TKT3L;42Z%WT;9Bj zl8{fDe4K>2jP=xjRkVtoQh7S9J4Y3}c6>Oi*wf=$wPH8wPiC{CwfE@Y>1pSEJWTip z$pA5ZIivfkzp&@49@59}+1Ha*p4*UzYh5oLtdGkx zFH2&c^ueF_-Rx5v`IaLOPv{i+cDbjrva!fY2RZ7%tG<+#E@nFTB`a?@>tD~gY6Cgv z)Nh${H$3~LodKmr3zyAIIhM$G`dWHeRz-<^{g_hT9Vup){(dEfR zt!+c!L4^pvxk4ENBg=81EXRS1KMc{f;VNQWjdO)K0$KlyfImKSoBO}q6=VK&27Us? CayG00 literal 0 HcmV?d00001 diff --git a/AR-VR/TestAR_TestAR_2024cse1121_3/.DS_Store b/AR-VR/TestAR_TestAR_2024cse1121_3/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a048b522ed614ca274b66abf94f34dc1ad5adc04 GIT binary patch literal 6148 zcmeHK!A{#i5S z!tbm^rSEsNnsMi@g{i(ee=T#tS54l$>`SS z-X*t1KB~Iid(~KJuD)0c)`IomEV?q2sEVucs2>kM^V0`oiezrb$;UjK4B9W>o3e`Y zG8@{2Jk1dD4U$F}5C;BF z22}GfI_zU^{%&2ECEv9gdJbjbxZ2^b6d3j@Ml4^&TTmDII2LJ#7 literal 0 HcmV?d00001 diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/.DS_Store b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6dfa6a0c39b5e37d5fa08baac4e72c4f345d6267 GIT binary patch literal 6148 zcmeHKK}#D!6n>-8OcW)D7Q6@pUU~=^HAbX|u4$xr?UweS5_jDtE^cSzGY{20Dv|6!4^On064nB!V)%*n3`8U zVRJN6L}dCJ5hTzC7c%fBvh9FXz$)<86j0ypDtv(uzu64#f4?dALkNyydG5#3$2_%2 zd_w>5R~trCxc;EmCGKy(8%MpYTD@a)^M!@QA}{h~e(GMxftz_*zt`~6W7Yd6W$ce* z&;K5UgI4+7XPIPPl!U1!L_vrtCqJSjkb{QoCqYkhT{FQ;ywobM4TrVey^7eW)khUE z+~2NNL~W-&8kP9_jm?i=TbFSskw0}6z;ON2wn8|DUl=^8Pu$*e&t<1OCQQrk$Yzr? z;p^A8^*`y&!E{dWY)<#$dCzs_rb#T5Ha^Q(i+d&6a0V5i_so}Pur^zgRlq9nG6mH7 zAkY;$gt80Eh(~)`qeAO;8*`=n&=xaR!YUDx#q>I$|(G$8kY<4qPtbYPA_+gb&z0uL3KH{G(@{}2Cv{(nfaJ*$9KV5Sscg{IqVU`e#M zP86s1T7iCsu1w|S1~mm6+KzRgw&FE(Z8#@XfannB25|(<{s?FpY-1I8RR#V5lZ=b9 literal 0 HcmV?d00001 diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c61058050fe9242460c864e5cf8af6c400a27414 GIT binary patch literal 6148 zcmeHKJxc>Y5PhpD0v4vUT1O@H<)3IM{LiVc3n4ZO;6Eu!Zv-*!X9w=eKfN?pvDvn9Aiy=#NPsQTCQ<{JGKtp zry5VpJNr;07joqcI0MdrGvEyT2m?H`CF4Cq*Uo@5;0(Mmp#34T39Ew1FmD}Hx;|@u zB$TkPOR_K)tO_PW&QOAd5-l{8Cq}Sv+GFvn3MNAfN63|#r&NA@yo6kx_L$ufDnr-K zfHTl%VAqBdo&Tr&%M3p9`yoDZ2AqL^#y}XYE>}x_R5@F}e4ftQ$acdfkzZ1W!hY`( iz=8IWgFI>TQGNPV1(Tt&$ezQAei6uoxN-)5fq@qp7%?IM literal 0 HcmV?d00001 diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt new file mode 100644 index 00000000..70c379b6 --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt @@ -0,0 +1 @@ +Hello world \ No newline at end of file diff --git a/Guide/.DS_Store b/Guide/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..373d81720eb372729e225fe563a4272042eb01bc GIT binary patch literal 6148 zcmeHKK}#Gl6n=5nI$J61p#_ft!P8<_SA^2bbi0cRwg*RBik9t+v)I9LA~UmHWLcPV z`(t|TFX`WDzn8?K-S$urk(viD-%IjdLcUD$CPXBhlj4 zyajL3dmnsMgsPK!!GQfHy~TU6 zTDM5YfMeia7~uOsLK%IFl|g-VpwLeMApb^afz4^3W28mjVr39L5Me@rCRErbhA`o1 zm)6g>SQ#|oB<$lu*qMcWp$I)Y#+TZigm2K5jseHObp~pt+T{G-|NHy@dXTF*1{?$b z6$7H)3wm8F$>!FX#c{5c&<{`+_Nxr)5EM2YYlBnq5>yNNBpX2AVr3955ceaXX>f&O I;8q#<31~cr^#A|> literal 0 HcmV?d00001 From 06d70c87bf65a57136712196428ec1429a96274f Mon Sep 17 00:00:00 2001 From: Shivangi Tripathi Date: Thu, 6 Oct 2022 21:35:30 +0530 Subject: [PATCH 2/4] removed .Ds store and hello world --- AR-VR/.DS_Store | Bin 8196 -> 8196 bytes .../.DS_Store | Bin 6148 -> 6148 bytes .../GettingStarted/.DS_Store | Bin 6148 -> 0 bytes .../GettingStarted/Hello World.txt | 1 - 4 files changed, 1 deletion(-) delete mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store delete mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt diff --git a/AR-VR/.DS_Store b/AR-VR/.DS_Store index 1821a59c4e80b26fc38cb253e666598b3ffceeb1..d27028b005324e31e926877d30f38c05cbc4738a 100644 GIT binary patch delta 592 zcmZp1XmOa}FUrrrz`)4BAi%(o$56pg%uvLT$q>J>a2or>2Hwr=94s95AQdtUi9nf3 zAc>@k!4WPN&tSx02*jog$v`sTPbcPI|P6Hq`2I}`_NUVoSdoz?W$Q7HfZ^S*rpx z3FOgqu$PK~re**!(BllgNaDd@@p^~^$W0*sWiph2eP_vFg2f_`|K=h2j}(h=*i#R& zs4TcBFDE}Q9cTeCx){_LK(5OLIwu<#a3I&G1H&mEL)0A@Y6U^CnLOk>&1F7b_Jvb=!jW*^~wOaSmX Bgm?e| delta 89 zcmV-f0H*(hK!iY$PZbIP0003101yBGVE}FbX8>scG5|8Mah3;>fDN+;2m}ZL3X^^k vT$5rF_y{vGI4mGCIX9Em7C*D06J`XlfcgQm2N?DQlYpF delta 21 ccmZoMXffFEf`!Ax)Lciw*u-q}2Nn@w08G>dWB>pF diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/.DS_Store deleted file mode 100644 index c61058050fe9242460c864e5cf8af6c400a27414..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJxc>Y5PhpD0v4vUT1O@H<)3IM{LiVc3n4ZO;6Eu!Zv-*!X9w=eKfN?pvDvn9Aiy=#NPsQTCQ<{JGKtp zry5VpJNr;07joqcI0MdrGvEyT2m?H`CF4Cq*Uo@5;0(Mmp#34T39Ew1FmD}Hx;|@u zB$TkPOR_K)tO_PW&QOAd5-l{8Cq}Sv+GFvn3MNAfN63|#r&NA@yo6kx_L$ufDnr-K zfHTl%VAqBdo&Tr&%M3p9`yoDZ2AqL^#y}XYE>}x_R5@F}e4ftQ$acdfkzZ1W!hY`( iz=8IWgFI>TQGNPV1(Tt&$ezQAei6uoxN-)5fq@qp7%?IM diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt deleted file mode 100644 index 70c379b6..00000000 --- a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Hello World.txt +++ /dev/null @@ -1 +0,0 @@ -Hello world \ No newline at end of file From 59d684d11787bffac8e9a0a1043f9e5bc4d12b10 Mon Sep 17 00:00:00 2001 From: Shivangi Tripathi Date: Fri, 7 Oct 2022 03:00:36 +0530 Subject: [PATCH 3/4] getting started module --- .../GettingStarted/Fibonacci.java | 18 +++++++++++++ .../GettingStarted/GradingSystem.java | 21 +++++++++++++++ .../GettingStarted/IsANumberPrime.java | 27 +++++++++++++++++++ .../GettingStarted/PrintZ.java | 12 +++++++++ .../GettingStarted/RangePrime.java | 26 ++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Fibonacci.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/GradingSystem.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/IsANumberPrime.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/PrintZ.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/RangePrime.java diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Fibonacci.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Fibonacci.java new file mode 100644 index 00000000..ba3bdddd --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/Fibonacci.java @@ -0,0 +1,18 @@ +import java.util.*; +class Fibonacci { + public static void main(String[] args) { + + Scanner scn = new Scanner(System.in); + int n = scn.nextInt(); + int firstTerm = 0,secondTerm = 1; + + + for (int i = 1; i <= n; ++i) { + System.out.println(firstTerm); + int nextTerm = firstTerm + secondTerm; + firstTerm = secondTerm; + secondTerm = nextTerm; + } + scn.close(); + } +} \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/GradingSystem.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/GradingSystem.java new file mode 100644 index 00000000..fbf016cd --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/GradingSystem.java @@ -0,0 +1,21 @@ +import java.util.*; + +public class GradingSystem { + + public static void main(String[] args) { + + Scanner scn = new Scanner(System.in); + int marks = scn.nextInt(); + if(marks>90) + System.out.println("excellent"); + else if(marks>80 && marks<=90) + System.out.println("good"); + else if(marks>70 && marks<=80) + System.out.println("fair"); + else if(marks>60 && marks<=70) + System.out.println("meets expectations"); + else + System.out.println("below par"); + scn.close(); + } +} diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/IsANumberPrime.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/IsANumberPrime.java new file mode 100644 index 00000000..df67a90c --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/IsANumberPrime.java @@ -0,0 +1,27 @@ +import java.util.*; + + public class IsANumberPrime{ + + public static void main(String[] args) { + Scanner scn = new Scanner(System.in); + int t=scn.nextInt(); + for(int x=1;x<=t;x++) + { + int n=scn.nextInt(); + if(isPrime(n)==1) + System.out.println("prime"); + else System.out.println("not prime"); + + } + scn.close(); + } + public static int isPrime(int n) + { + for(int x=2;x<=n/2;x++) + { + if(n%x==0) + return 0; + } + return 1; + } + } \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/PrintZ.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/PrintZ.java new file mode 100644 index 00000000..53c15bcb --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/PrintZ.java @@ -0,0 +1,12 @@ + + +public class PrintZ { + + public static void main(String[] args) { + System.out.println("*****"); + System.out.println(" * "); + System.out.println(" * "); + System.out.println(" * "); + System.out.println("*****"); + } +} \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/RangePrime.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/RangePrime.java new file mode 100644 index 00000000..068dee95 --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/GettingStarted/RangePrime.java @@ -0,0 +1,26 @@ +import java.util.*; +public class RangePrime { + + public static void main(String[] args) + { + Scanner scn = new Scanner(System.in); + int low, high, i, j, flag; + low = scn.nextInt(); + high = scn.nextInt(); + for (i = low; i <= high; i++) { + if (i == 1 || i == 0) + continue; + flag = 1; + + for (j = 2; j <= i / 2; ++j) { + if (i % j == 0) { + flag = 0; + break; + } + } + if (flag == 1) + System.out.println(i); + } + scn.close(); + } +} \ No newline at end of file From 7a5d7b0015b31ccbd9a5b40b1b3f0d45716f3b62 Mon Sep 17 00:00:00 2001 From: Shivangi Tripathi Date: Thu, 27 Oct 2022 00:31:31 +0530 Subject: [PATCH 4/4] patterns --- .idea/.gitignore | 0 .idea/.name | 1 + .idea/coder.iml | 9 +++++++ .idea/misc.xml | 4 +++ .idea/modules.xml | 8 ++++++ .idea/vcs.xml | 6 +++++ .idea/workspace.xml | 25 ++++++++++++++++++ AR-VR/.DS_Store | Bin 8196 -> 10244 bytes .../.DS_Store | Bin 6148 -> 6148 bytes .../Pattern/Pattern1.java | 18 +++++++++++++ .../Pattern/Pattern2.java | 18 +++++++++++++ .../Pattern/Pattern3.java | 20 ++++++++++++++ .../Pattern/Pattern4.java | 24 +++++++++++++++++ .../Pattern/Pattern5.java | 21 +++++++++++++++ 14 files changed, 154 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/coder.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern1.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern2.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern3.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern4.java create mode 100644 AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern5.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 00000000..55e476b4 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +pattern4.java \ No newline at end of file diff --git a/.idea/coder.iml b/.idea/coder.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/.idea/coder.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..80dd8719 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..7f8bde00 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..74ed9700 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + 1666809994886 + + + + \ No newline at end of file diff --git a/AR-VR/.DS_Store b/AR-VR/.DS_Store index d27028b005324e31e926877d30f38c05cbc4738a..f23e176fde4bc92f397ddc5dfe0cb227fd84b9cd 100644 GIT binary patch delta 943 zcmdr~O)mpc6g{IGiN?(MC<~GbL42hxC3e1=>VlN+STrq-nY5jvO4!uGPDteK{0V8g z692=_@4$+4UqaFT0yBAY@11*d&pG$qtEH=CKLBH;vL6P5blZ8vTK>DEz}?J{(N{}8 znMR-TTf54%7S(3pQtfod#jl>Gj=e(3J7B%RGm1D|oM0UlWRc-}%*e$yJr`*#H~onq zj0mFGLm5Tn7=N&DtGIU@*#m`$~g)Y+9Jx)H!s=bkL+(*vLOOLkHr=Q z-i3hj2UhBDy=GhO((~Cqtr)=$+L&x+?da8~%z>>Q&RX_$Tne~=A+hRk;6^>#$$xhN G&&DUqhR7BG delta 131 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMA$iFdQH$Nl)WFCR&&C){Zj67w* zMR_^-dFdd1lOKuXZ&nxE!Mr(G%8f~o87Kw>65K$-6=cT7!tczJ`Befr7$GJzOpfQ7 RI(faA=j0U0YM>rxCIGL`8@2!d diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/.DS_Store b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/.DS_Store index b545412144c3a816a93de75f169685fffff4834f..b4bfd6678fdfd2c8b0513bf9bdb210c66c7c8b8e 100644 GIT binary patch delta 270 zcmZoMXfc@J&&aniU^g=(-{c9b3Y&FUzBAggGXyXsGL!&eDnk)No@Y*ea#Buy5(5K+ z01(dvV$J_x0Aw*RpsAjm!E(GFO)MwfFgQ6sw*agjLZGS0&3AEu+QCu6JbT5g`Xi2* kX6NRo5TU9dLx+%cWx+*xIr(|%Kr0w07MgBm=lIJH0A~|IfdBvi delta 36 scmZoMXfc@J&&a+pU^g=(`{W6%3Y&FUzB5j~%5Jo=VH4wKc8=1;x--) + { + for(int y=1;y<=x;y++) + System.out.print("*\t"); + + System.out.println(); + } + sc.close(); + } +} \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern3.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern3.java new file mode 100644 index 00000000..9fa1beb9 --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern3.java @@ -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(); + } +} \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern4.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern4.java new file mode 100644 index 00000000..52e243b6 --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern4.java @@ -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(); + } + + } +} \ No newline at end of file diff --git a/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern5.java b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern5.java new file mode 100644 index 00000000..25c8cd7c --- /dev/null +++ b/AR-VR/shivangi2213b_ShivangiTripathi_2025cse1087_2/Pattern/Pattern5.java @@ -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(); + } +} \ No newline at end of file