├── .idea ├── .gitignore ├── misc.xml ├── inspectionProfiles │ └── profiles_settings.xml ├── vcs.xml ├── modules.xml └── Pattern_Printing.iml ├── Pattern(Python) ├── Important printing pattern- PYTHON │ ├── Printing Numbers in Right Triangle Shape .py │ ├── 01.Number prating(Floyd's Triangle).py │ ├── 02.Printing string .py │ ├── 03.Printhing nymbers.py │ ├── 04.Printing Stars in Hollow Equilateral Triangle Shape.py │ ├── 05.Hollowdiamondshape.py │ ├── Printing pattern in heart shape.py │ ├── Printing Numbers in Pyramid Shape.py │ └── Pattern printing is sprial shape.py ├── 06.Printing_star_in_Right_angle_Triangle.py ├── 01.Right_angle_Tringle.py ├── 02.Right_angle_triangle 2.py ├── 18.Printing stars in 'L' shape.py ├── 26.Printing star in 'T; shape.py ├── 15.#Printing Stars in 'I' Shape .py ├── 05.diamond.py ├── 11.Printing Stars in E Shape.py ├── 27.Printing star in U shape.py ├── 14.Printing Stars in 'H' Shape.py ├── 16.Printing Stars in 'J' Shape.py ├── 12.Printing stars in F Shape.py ├── 09.Printing Stars in C Shape.py ├── 21.Printing stars in 'O' shape.py ├── 20.Printing stars in 'N' shape.py ├── 22.Printing stars in 'P' shape.py ├── 10.Printing Stars in D Shape.py ├── 23.Printing stars in 'Q' shape.py ├── 24.Printing stars in'R' shape.py ├── 19.Printing stars in 'M' shape.py ├── 25.printing star in 'S' shape.py ├── 03.Pyramid.py ├── 30.printing star in 'X' shape.py ├── 31.Printing star in 'Z' shape.py ├── 17.Printing Stars in 'K' Shape.py ├── 28.Printing star in V shape.py ├── 13.Printing stars in G shape.py ├── 31.Printing star in 'Y' shape.py ├── 29.Printing star in 'W' shape.py ├── 04.reverse pyramid.py ├── 07.Printing_A.py ├── 08.Printing Stars in B Shape.py └── README.md ├── Pattern-CPP ├── pattern.exe ├── Pattern30.exe ├── pattern02.exe ├── pattern03.exe ├── pattern04.exe ├── pattern05.exe ├── pattern06.exe ├── pattern07.exe ├── pattern08.exe ├── pattern09.exe ├── pattern10.exe ├── pattern11.exe ├── pattern13.exe ├── pattern14.exe ├── pattern15.exe ├── pattern16.exe ├── pattern17.exe ├── pattern18.exe ├── pattern19.exe ├── pattern20.exe ├── pattern21.exe ├── pattern23.exe ├── pattern24.exe ├── pattern25.exe ├── pattern26.exe ├── pattern27.exe ├── pattern28.exe ├── pattern29.exe ├── pattern31.exe ├── pattern32.exe ├── program12.exe ├── tempCodeRunnerFile.exe ├── pattern02.cpp ├── pattern03.cpp ├── pattern07.cpp ├── pattern17.cpp ├── pattern13.cpp ├── pattern06.cpp ├── pattern08.cpp ├── pattern.cpp ├── pattern18.cpp ├── pattern22.cpp ├── program12.cpp ├── pattern19.cpp ├── pattern21.cpp ├── pattern14.cpp ├── pattern20.cpp ├── pattern15.cpp ├── pattern05.cpp ├── pattern04.cpp ├── pattern09.cpp ├── pattern11.cpp ├── pattern24.cpp ├── pattern23.cpp ├── pattern16.cpp ├── pattern10.cpp ├── pattern28.cpp ├── pattern29.cpp ├── pattern26.cpp ├── pattern27.cpp ├── pattern25.cpp ├── pattern32.cpp ├── tempCodeRunnerFile.cpp ├── Pattern30.cpp ├── pattern31.cpp └── .vscode │ ├── tasks.json │ └── settings.json ├── LICENSE └── Untitled-1.html /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/Printing Numbers in Right Triangle Shape .py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Pattern-CPP/pattern.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern.exe -------------------------------------------------------------------------------- /Pattern-CPP/Pattern30.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/Pattern30.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern02.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern02.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern03.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern03.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern04.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern04.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern05.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern05.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern06.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern06.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern07.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern07.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern08.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern08.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern09.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern09.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern10.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern10.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern11.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern11.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern13.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern13.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern14.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern14.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern15.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern15.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern16.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern16.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern17.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern17.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern18.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern18.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern19.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern19.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern20.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern20.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern21.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern21.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern23.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern23.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern24.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern24.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern25.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern25.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern26.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern26.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern27.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern27.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern28.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern28.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern29.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern29.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern31.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern31.exe -------------------------------------------------------------------------------- /Pattern-CPP/pattern32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/pattern32.exe -------------------------------------------------------------------------------- /Pattern-CPP/program12.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/program12.exe -------------------------------------------------------------------------------- /Pattern-CPP/tempCodeRunnerFile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kushal997-das/Pattern_Printing/HEAD/Pattern-CPP/tempCodeRunnerFile.exe -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Pattern(Python)/06.Printing_star_in_Right_angle_Triangle.py: -------------------------------------------------------------------------------- 1 | #Printing 'Right_angle_Triangle_' Shape ! 2 | ''' 3 | ***** 4 | **** 5 | *** 6 | ** 7 | * 8 | ''' 9 | n=int(input()) 10 | for i in range(n): 11 | print('*'*(n-i)) -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /Pattern(Python)/01.Right_angle_Tringle.py: -------------------------------------------------------------------------------- 1 | #Printing 'Right_angle_Triangle' Shape ! 2 | ''' 3 | * 4 | ** 5 | *** 6 | **** 7 | ***** 8 | ''' 9 | n=int(input()) 10 | for i in range(0,n): 11 | for j in range(0,i+1): 12 | print("*",end='') 13 | print() 14 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Pattern(Python)/02.Right_angle_triangle 2.py: -------------------------------------------------------------------------------- 1 | #Printing 'Right_angle_Triangle-2' Shape ! 2 | ''' 3 | * 4 | *** 5 | ***** 6 | ''' 7 | 8 | n=int(input()) 9 | k=0 10 | for i in range(0,n): 11 | for j in range(0,k+1): 12 | print("*",end='') 13 | k += 2 14 | print() 15 | 16 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pattern(Python)/18.Printing stars in 'L' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in L shape! 2 | ''' 3 | * 4 | * 5 | * 6 | * 7 | * * * * 8 | ''' 9 | for row in range(5): 10 | for col in range(4): 11 | if(col==0 or row==4): 12 | print('*',end=' ') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/01.Number prating(Floyd's Triangle).py: -------------------------------------------------------------------------------- 1 | ''' 2 | 1 3 | 2 3 4 | 4 5 6 5 | 7 8 9 10 6 | 11 12 13 14 15 7 | ''' 8 | num=1 9 | for row in range(int(input('enter the row'))): 10 | for col in range(0,row+1): 11 | print(num,end=' ') 12 | num+=1 13 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/02.Printing string .py: -------------------------------------------------------------------------------- 1 | ''' 2 | K 3 | K u 4 | K u s 5 | K u s h 6 | K u s h a 7 | K u s h a l 8 | ''' 9 | String=input('enter the string:') 10 | for row in range(len(String)): 11 | for col in range(row+1): 12 | print(String[col],end=' ') 13 | print() 14 | -------------------------------------------------------------------------------- /Pattern(Python)/26.Printing star in 'T; shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in 'T' shape! 2 | ''' 3 | ***** 4 | * 5 | * 6 | * 7 | * 8 | ''' 9 | for row in range(5): 10 | for col in range(5): 11 | if(row==0) or (col==2): 12 | print('*',end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/03.Printhing nymbers.py: -------------------------------------------------------------------------------- 1 | ''' 2 | enter how many rows you want:5 3 | 1 2 3 4 5 4 | 1 2 3 4 5 | 1 2 3 6 | 1 2 7 | 1 8 | ''' 9 | for row in range(int(input('enter how many rows you want:')),0,-1): 10 | for col in range(1,row+1): 11 | print(col,end=' ') 12 | print() 13 | -------------------------------------------------------------------------------- /Pattern(Python)/15.#Printing Stars in 'I' Shape .py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'I' Shape ! 2 | ''' 3 | ***** 4 | * 5 | * 6 | * 7 | * 8 | * 9 | ***** 10 | ''' 11 | for row in range(7): 12 | for col in range(5): 13 | if(row==0 or row==6) or (col==2): 14 | print('*',end='') 15 | else: 16 | print(end=' ') 17 | print() -------------------------------------------------------------------------------- /.idea/Pattern_Printing.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pattern(Python)/05.diamond.py: -------------------------------------------------------------------------------- 1 | #Printing Diamond Shape ! 2 | ''' 3 | * 4 | * * 5 | * * * 6 | * * * * 7 | * * * * * 8 | * * * * * 9 | * * * * 10 | * * * 11 | * * 12 | * 13 | ''' 14 | n=int(input()) 15 | for i in range(n): 16 | 17 | print(' ' * (n - i - 1) + '* ' * (i + 1)) 18 | for i in range(n, 0, -1): 19 | print(' ' * (n - i) + '* ' * (i)) -------------------------------------------------------------------------------- /Pattern(Python)/11.Printing Stars in E Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'E' Shape ! 2 | ''' 3 | ***** 4 | * 5 | * 6 | ***** 7 | * 8 | * 9 | ***** 10 | ''' 11 | for row in range(7): 12 | for col in range(5): 13 | if (col==0) or ((row==0 or row==3 or row==6) and (col>0)): 14 | print('*',end='') 15 | else: 16 | print(end=' ') 17 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/04.Printing Stars in Hollow Equilateral Triangle Shape.py: -------------------------------------------------------------------------------- 1 | ''' 2 | * 3 | * * 4 | * * 5 | ******* 6 | ''' 7 | 8 | for row in range(4): 9 | for col in range(7): 10 | if row==3 or col+row==3 or col-row==3: 11 | print('*',end='') 12 | else: 13 | print(end=' ') 14 | print() -------------------------------------------------------------------------------- /Pattern(Python)/27.Printing star in U shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in 'U' shape! 2 | ''' 3 | * * 4 | * * 5 | * * 6 | * * 7 | *** 8 | ''' 9 | for row in range(5): 10 | for col in range(5): 11 | if(col==0 or col==4) and( row!=4) or (row==4 and col>0 and col <4): 12 | print('*',end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/14.Printing Stars in 'H' Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'H' Shape ! 2 | 3 | ''' 4 | * * 5 | * * 6 | * * 7 | ***** 8 | * * 9 | * * 10 | * * 11 | ''' 12 | for row in range(7): 13 | for col in range(5): 14 | if(col==0 or col==4) or (row==3 and col<4): 15 | print('*',end='') 16 | else: 17 | print(end=' ') 18 | print() -------------------------------------------------------------------------------- /Pattern(Python)/16.Printing Stars in 'J' Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'J' Shape ! 2 | ''' 3 | ***** 4 | * 5 | * 6 | * * 7 | ** 8 | ''' 9 | for row in range(5): 10 | for col in range(5): 11 | if(row==0) or (row==4 and col<2) or (col==2 and row!=4) or (row==3 and col<1): 12 | print('*',end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/05.Hollowdiamondshape.py: -------------------------------------------------------------------------------- 1 | ''' 2 | * 3 | * * 4 | * * 5 | * * 6 | * 7 | ''' 8 | 9 | for row in range(5): 10 | for col in range(5): 11 | if (row+col==2) or (row+col==6) or (row==1 and col==3) or (row==3 and col==1): 12 | print("*",end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/12.Printing stars in F Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'F' Shape ! 2 | ''' 3 | * * * * * 4 | * 5 | * 6 | * * * * 7 | * 8 | * 9 | * 10 | ''' 11 | for row in range(7): 12 | for col in range(5): 13 | if (col==0)or((row==0) and (col>0) or (row==3)and(col>0 and col<4)): 14 | print('*',end=' ') 15 | else: 16 | print(end=' ') 17 | print() -------------------------------------------------------------------------------- /Pattern(Python)/09.Printing Stars in C Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'C' Shape ! 2 | ''' 3 | **** 4 | * 5 | * 6 | * 7 | * 8 | * 9 | **** 10 | 11 | ''' 12 | 13 | for row in range(7): 14 | for col in range(5): 15 | if (col==0 and (row!=0 and row!=6)) or (row==0 or row==6) and (col>0): 16 | print('*',end='') 17 | else: 18 | print(end=' ') 19 | print() -------------------------------------------------------------------------------- /Pattern(Python)/21.Printing stars in 'O' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in O shape! 2 | ''' 3 | *** 4 | * * 5 | * * 6 | * * 7 | *** 8 | ''' 9 | for row in range(5): 10 | for col in range(5): 11 | if((col==0 or col==4) and (row!=0 and row!=4)) or (row==0 or row==4) and (col>0 and col<4): 12 | print('*', end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/20.Printing stars in 'N' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in N shape! 2 | ''' 3 | * * 4 | ** * 5 | * * * 6 | * * * 7 | * * * 8 | * ** 9 | * * 10 | 11 | ''' 12 | for row in range(7): 13 | for col in range(7): 14 | if(col==0 or col==6) or(row==col and(col>0 and col<6)): 15 | print('*', end='') 16 | else: 17 | print(end=' ') 18 | print() -------------------------------------------------------------------------------- /Pattern(Python)/22.Printing stars in 'P' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in P shape! 2 | ''' 3 | **** 4 | * * 5 | * * 6 | **** 7 | * 8 | * 9 | 10 | ''' 11 | for row in range(6): 12 | for col in range(6): 13 | if col==0 or (col==5 and (row==1 or row==2)) or (row==0 or row==3)and(col>0 and col<4): 14 | print('*', end='') 15 | else: 16 | print(end=' ') 17 | print() -------------------------------------------------------------------------------- /Pattern(Python)/Important printing pattern- PYTHON/Printing pattern in heart shape.py: -------------------------------------------------------------------------------- 1 | ''' 2 | ** ** 3 | * * * 4 | * * 5 | * * 6 | * * 7 | * 8 | ''' 9 | for row in range(6): 10 | for col in range(7): 11 | if(row==0 and col%3!=0) or (row==1 and col%3==0) or row-col==2 or row+col==8: 12 | print('*',end='') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/10.Printing Stars in D Shape.py: -------------------------------------------------------------------------------- 1 | #Printing Stars in 'D' Shape ! 2 | ''' 3 | **** 4 | * * 5 | * * 6 | * * 7 | * * 8 | * * 9 | **** 10 | ''' 11 | 12 | for row in range(7): 13 | for col in range(5): 14 | if (col==0) or (col==4 and (row!=0 and row!=6)) or ((row==0 or row==6)and (col>0 and col<4)): 15 | print('*',end='') 16 | else: 17 | print(end=' ') 18 | print() -------------------------------------------------------------------------------- /Pattern(Python)/23.Printing stars in 'Q' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in Q shape! 2 | ''' 3 | *** 4 | * * 5 | * * 6 | * * 7 | *** 8 | * 9 | ''' 10 | for row in range(6): 11 | for col in range(5): 12 | if((col==0 or col==4) and (row>0 and row<4)) or (row==0 or row==4) and (col>0 and col<4) or (col==4 and row==5): 13 | print('*', end='') 14 | else: 15 | print(end=' ') 16 | print() -------------------------------------------------------------------------------- /Pattern(Python)/24.Printing stars in'R' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in R shape! 2 | ''' 3 | **** 4 | * * 5 | * * 6 | **** 7 | * * 8 | * * 9 | * * 10 | 11 | ''' 12 | for row in range(7): 13 | for col in range(5): 14 | if (col==0) or (row==0 or row==3)and (col<4) or (col==4)and (row!=0 and row!=3): 15 | print('*',end='') 16 | else: 17 | print(end=' ') 18 | print() 19 | 20 | -------------------------------------------------------------------------------- /Pattern-CPP/pattern02.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 1111 3 | 2222 4 | 3333 5 | 4444 6 | */ 7 | #include 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter the number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | while(col<=n) 18 | { 19 | cout<0 and col<4)) or (row==1 and col==5)or(row==2 and col==4): 14 | print('*',end='') 15 | else: 16 | print(end=' ') 17 | print() -------------------------------------------------------------------------------- /Pattern(Python)/25.printing star in 'S' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in 'S' shape! 2 | ''' 3 | *** 4 | * 5 | * 6 | *** 7 | * 8 | * 9 | *** 10 | 11 | ''' 12 | for row in range(7): 13 | for col in range(5): 14 | if(row==0 or row==3 or row==6) and (col>0 and col<4) or (col==0 and row>0 and row<3) or (col==4 and row>3 and row<6): 15 | print('*', end='') 16 | else: 17 | print(end=' ') 18 | print() -------------------------------------------------------------------------------- /Pattern-CPP/pattern03.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 4321 3 | 4321 4 | 4321 5 | 4321 6 | */ 7 | #include 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter the number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | while(col<=n) 18 | { 19 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter a number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | 18 | while(col<=row){ 19 | cout< 7 | using namespace std; 8 | int main() 9 | { 10 | int row=1,n; 11 | cout<<"enter a number"; 12 | cin>>n; 13 | while(row<=n){ 14 | int col=1; 15 | char ch='A'; 16 | while(col<=row){ 17 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter the number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | char ch='A'; 18 | 19 | while(col<=n) 20 | { 21 | cout<1 and col<3)) or (row==2 and (col>0 and col<2)) or (row==3 and (col>1 and col<3)) or (row==4 and (col==4)): 12 | print('*',end=' ') 13 | else: 14 | print(end=' ') 15 | print() -------------------------------------------------------------------------------- /Pattern(Python)/28.Printing star in V shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in 'V' shape! 2 | ''' 3 | * * 4 | * * 5 | * * 6 | * 7 | 8 | ''' 9 | i=0 10 | j=6 11 | for row in range(4): 12 | for col in range(7): 13 | if(row==col): 14 | print('*',end='') 15 | elif row==i and col==j: 16 | print('*',end='') 17 | i+=1 18 | j-=1 19 | else: 20 | print(end=' ') 21 | print() 22 | 23 | -------------------------------------------------------------------------------- /Pattern-CPP/pattern06.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | **** 3 | *** 4 | ** 5 | * 6 | */ 7 | #include 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter the row"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | while(col<=n) 18 | { 19 | if(row<=col) 20 | cout<<"*"; 21 | col++; 22 | } 23 | row++; 24 | cout< 7 | using namespace std; 8 | int main() 9 | { 10 | int n,row=1; 11 | cout<<"enter a number"; 12 | cin>>n; 13 | while(row<=n) 14 | { 15 | int col=1; 16 | while(col<=n) 17 | { 18 | if(row<=col) 19 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=0; 12 | cout<<"Enter the row:-"; 13 | cin>>n; 14 | while(row 8 | using namespace std; 9 | int main() 10 | { 11 | int row=1,n; 12 | cout<<"enter a number"; 13 | cin>>n; 14 | while(row<=n){ 15 | int col=1; 16 | char ch='A'; 17 | while(col<=n){ 18 | if(row<=col) 19 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int row=1,n; 13 | cout<<"enter a number"; 14 | cin>>n; 15 | while(row<=n){ 16 | int col=1; 17 | char ch='A'+n-row; 18 | while(col<=row){ 19 | 20 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | cout<<"enter number"; 14 | cin>>n; 15 | while(row<=n) 16 | { 17 | int col=1; 18 | while(col<=row) 19 | { 20 | cout<<(row-col+1)<<" "; 21 | 22 | col++; 23 | } 24 | row++; 25 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int row=1,n; 13 | cout<<"enter a number"; 14 | cin>>n; 15 | while(row<=n){ 16 | int col=1; 17 | char ch='A'; 18 | while(col<=row){ 19 | 20 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int row=1,n; 13 | cout<<"enter a number"; 14 | cin>>n; 15 | while(row<=n){ 16 | int col=1; 17 | char ch='A'+n-row; 18 | while(col<=row){ 19 | 20 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | char ch='A'; 18 | while(col<=n) 19 | { 20 | 21 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int row=1,n,count=1; 12 | cout<<"enter a number"; 13 | cin>>n; 14 | while(row<=n){ 15 | int col=1; 16 | char ch='A'; 17 | while(col<=row){ 18 | 19 | cout<0)) or ((row==3)and(col>1 and col<5))or(row==4 or row==5)and(col==4): 14 | print('*',end='') 15 | 16 | else: 17 | print(end=' ') 18 | print() 19 | 20 | 21 | -------------------------------------------------------------------------------- /Pattern(Python)/31.Printing star in 'Y' shape.py: -------------------------------------------------------------------------------- 1 | #Printing stars in 'Y' shape! 2 | ''' 3 | * * 4 | * * 5 | * 6 | * 7 | * 8 | ''' 9 | 10 | i = 0 11 | j = 4 12 | for row in range(5): 13 | for col in range(5): 14 | 15 | if (col==row and col<3) or (col==2 and row>2): 16 | print("*",end='') 17 | elif row==i and col==j and row<2 : 18 | print("*", end='') 19 | i+=1 20 | j-=1 21 | else: 22 | print(end=' ') 23 | print() -------------------------------------------------------------------------------- /Pattern-CPP/pattern15.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | A B C 3 | E F G 4 | I J K 5 | */ 6 | #include 7 | using namespace std; 8 | int main() 9 | { 10 | int row=1,n,count=1; 11 | cout<<"enter the number"; 12 | cin>>n; 13 | while(row<=n){ 14 | int col=1; 15 | char ch='A'; 16 | while(col<=n) 17 | { 18 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter a number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int col=1; 17 | while(col<=row){ 18 | // if(col<=row) 19 | //{ 20 | cout<<"*"; 21 | //} 22 | 23 | col++; 24 | } 25 | row++; 26 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | int count=1; 13 | cout<<"enter the number"; 14 | cin>>n; 15 | while(row<=n) 16 | { 17 | int col=1; 18 | while(col<=n) 19 | { 20 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | int count=1; 14 | 15 | cout<<"enter number"; 16 | cin>>n; 17 | while(row<=n){ 18 | int col=1; 19 | 20 | while(col<=row) 21 | { 22 | 23 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | 14 | cout<<"enter number"; 15 | cin>>n; 16 | while(row<=n) 17 | { 18 | int col=1; 19 | //int count=row; 20 | while(col<=row){ 21 | 22 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int space=n-row; 17 | while(space) 18 | { 19 | cout<<" "; 20 | space--; 21 | } 22 | int col=1; 23 | while(col<=row) 24 | { 25 | cout<<"*"<<" "; 26 | col++; 27 | } 28 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int space=n-row; 17 | while(space) 18 | { 19 | cout<<" "; 20 | space--; 21 | } 22 | 23 | 24 | int col=1; 25 | while(col<=row) 26 | { 27 | cout<<"*"; 28 | col++; 29 | } 30 | 31 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int row=1,n; 12 | cout<<"enter number"; //char ch='A'+n-row; 13 | cin>>n; 14 | while(row<=n){ 15 | int col=1; 16 | char ch='A'+row-1; // one way 17 | // char ch='A'; // second way 18 | while(col<=n) 19 | { 20 | // cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | int count=1; 14 | cout<<"enter number"; 15 | cin>>n; 16 | 17 | while(row<=n) 18 | { 19 | int col=1; 20 | while(col<=n){ 21 | if(row<=col)//col<=row 22 | { 23 | 24 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | cout<<"enter number"; 14 | cin>>n; 15 | while(row<=n) 16 | { 17 | 18 | // For space 19 | int space=n-row; 20 | while(space) 21 | 22 | { 23 | cout<<" "; 24 | space--; 25 | 26 | } 27 | // For star 28 | int col=1; 29 | while(col<=row) 30 | { 31 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1,count=1; 13 | cout<<"enter number"; 14 | cin>>n; 15 | while(row<=n) 16 | { 17 | 18 | // For space 19 | int space=n-row; 20 | while(space) 21 | 22 | { 23 | cout<<" "; 24 | space--; 25 | 26 | } 27 | // For star 28 | int col=1; 29 | while(col<=row) 30 | { 31 | cout< 10 | using namespace std; 11 | int main() 12 | { 13 | int n,row=1; 14 | cout<<"enter number"; 15 | cin>>n; 16 | while(row<=n) 17 | { 18 | // For space 19 | int space=row-1; 20 | while(space) 21 | 22 | { 23 | cout<<" "; 24 | space--; 25 | 26 | } 27 | // For star 28 | int star=n-row+1; 29 | while(star) 30 | { 31 | cout<<"*"; 32 | star--; 33 | } 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | row++; 42 | cout< 10 | using namespace std; 11 | int main() 12 | { 13 | int n,row=1; 14 | cout<<"enter number"; 15 | cin>>n; 16 | while(row<=n) 17 | { 18 | // For space 19 | int space=row-1; 20 | while(space) 21 | 22 | { 23 | cout<<" "; 24 | space--; 25 | 26 | } 27 | // For star 28 | int number=n-row+1; 29 | while(number) 30 | { 31 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter number"; 13 | cin>>n; 14 | while(row<=n) 15 | { 16 | int star=n-row+1; 17 | while(star) 18 | { 19 | cout<<"*"; 20 | star--; 21 | } 22 | // No need to add space here -- 23 | /* 24 | int col=1; 25 | // For space 26 | while(col<=row) 27 | { 28 | cout<<" "; 29 | col++; 30 | } 31 | */ 32 | // For space 33 | 34 | 35 | cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | 14 | cout<<"enter number"<>n; 17 | 18 | while(row<=n){ 19 | 20 | int col=n; 21 | while (col >=1){ 22 | if (col >= n - row + 2){ 23 | // cout << " "; 24 | // cout< 9 | using namespace std; 10 | int main() 11 | { 12 | int n,row=1; 13 | cout<<"enter number"; 14 | cin>>n; 15 | while(row<=n) 16 | { 17 | // For space 18 | int space=n-row; 19 | while(space) 20 | 21 | { 22 | cout<<" "; 23 | space--; 24 | 25 | } 26 | // For star 27 | // int star=n-row+1; 28 | int col=1; 29 | while(col<=row) 30 | { 31 | cout< 10 | using namespace std; 11 | int main() 12 | { 13 | int n=1,row=1; 14 | cout<<"enter row"; 15 | cin>>n; 16 | while(row<=n) 17 | { 18 | //for space 19 | int space=n-row; 20 | while(space) 21 | { 22 | cout<<" "; 23 | space--; 24 | } 25 | //for 1st triangle 26 | int col=1; 27 | while(col<=row) 28 | { 29 | cout< 8 | using namespace std; 9 | int main() 10 | { 11 | int n,row=1; 12 | cout<<"enter number"; 13 | cin>>n; 14 | 15 | while(row<=n) 16 | { 17 | int col=1; 18 | while(col<=n) 19 | { 20 | if(col<=n-row+1) 21 | 22 | cout<=1){ 33 | if (col >= n - row + 2){ 34 | cout << "*"; 35 | } 36 | else{ 37 | cout << col; 38 | } 39 | col--; 40 | 41 | 42 | } 43 | cout<0 and col0 or col0 and col<4)): 38 | print('*',end='') 39 | else: 40 | print(end=' ') 41 | print() 42 | 43 | -------------------------------------------------------------------------------- /Pattern-CPP/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "array": "cpp", 4 | "atomic": "cpp", 5 | "*.tcc": "cpp", 6 | "cctype": "cpp", 7 | "clocale": "cpp", 8 | "cmath": "cpp", 9 | "cstdarg": "cpp", 10 | "cstddef": "cpp", 11 | "cstdint": "cpp", 12 | "cstdio": "cpp", 13 | "cstdlib": "cpp", 14 | "cwchar": "cpp", 15 | "cwctype": "cpp", 16 | "deque": "cpp", 17 | "unordered_map": "cpp", 18 | "vector": "cpp", 19 | "exception": "cpp", 20 | "algorithm": "cpp", 21 | "functional": "cpp", 22 | "iterator": "cpp", 23 | "memory": "cpp", 24 | "memory_resource": "cpp", 25 | "numeric": "cpp", 26 | "random": "cpp", 27 | "string": "cpp", 28 | "system_error": "cpp", 29 | "tuple": "cpp", 30 | "type_traits": "cpp", 31 | "utility": "cpp", 32 | "fstream": "cpp", 33 | "initializer_list": "cpp", 34 | "iosfwd": "cpp", 35 | "iostream": "cpp", 36 | "istream": "cpp", 37 | "limits": "cpp", 38 | "new": "cpp", 39 | "ostream": "cpp", 40 | "sstream": "cpp", 41 | "stdexcept": "cpp", 42 | "streambuf": "cpp", 43 | "typeinfo": "cpp" 44 | } 45 | } -------------------------------------------------------------------------------- /Pattern(Python)/README.md: -------------------------------------------------------------------------------- 1 | ### Pattern_Printing 2 | 3 | - [Pattern_Printing](https://github.com/Kushal997-das/Pattern_Printing) 4 | - [01.Right_angle_Tringle.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/01.Right_angle_Tringle.py)
5 | 6 | * 7 | ** 8 | *** 9 | **** 10 | ***** 11 | 12 | - [02.Right_angle_triangle 2.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/02.Right_angle_triangle%202.py)
13 | 14 | * 15 | *** 16 | ***** 17 | 18 | - [03.Pyramid.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/03.Pyramid.py)
19 | 20 | * 21 | * * 22 | * * * 23 | * * * * 24 | * * * * * 25 | 26 | - [04.reverse pyramid.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/04.reverse%20pyramid.py) 27 | 28 | * * * * * 29 | * * * * 30 | * * * 31 | * * 32 | * 33 | 34 | - [05.diamond.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/05.diamond.py) 35 | 36 | * 37 | * * 38 | * * * 39 | * * * * 40 | * * * * * 41 | * * * * * 42 | * * * * 43 | * * * 44 | * * 45 | * 46 | 47 | - [06.Printing_star_in_Right_angle_Triangle.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/06.Printing_star_in_Right_angle_Triangle.py) 48 | 49 | ***** 50 | **** 51 | *** 52 | ** 53 | * 54 | 55 | 56 | - [07.Printing_A.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/07.Printing_A.py) 57 | 58 | *** 59 | * * 60 | * * 61 | ***** 62 | * * 63 | * * 64 | * * 65 | 66 | 67 | - [08.Printing Stars in B Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/08.Printing%20Stars%20%20in%20B%20Shape.py) 68 | 69 | **** 70 | * * 71 | * * 72 | **** 73 | * * 74 | * * 75 | **** 76 | 77 | - [09.Printing Stars in C Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/09.Printing%20Stars%20in%20C%20Shape.py) 78 | 79 | 80 | 81 | **** 82 | * 83 | * 84 | * 85 | * 86 | * 87 | **** 88 | 89 | - [10.Printing Stars in D Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/10.Printing%20Stars%20in%20D%20Shape.py) 90 | 91 | **** 92 | * * 93 | * * 94 | * * 95 | * * 96 | * * 97 | **** 98 | 99 | - [11.Printing Stars in E Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/11.Printing%20Stars%20in%20E%20Shape.py) 100 | 101 | ***** 102 | * 103 | * 104 | ***** 105 | * 106 | * 107 | ***** 108 | - [12.Printing stars in F Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/12.Printing%20stars%20in%20F%20Shape.py) 109 | 110 | 111 | * * * * * 112 | * 113 | * 114 | * * * * 115 | * 116 | * 117 | * 118 | - [13.Printing stars in G shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/13.Printing%20stars%20in%20G%20shape.py) 119 | 120 | 121 | * * * * 122 | * 123 | * 124 | * * * * 125 | * * 126 | * * 127 | * * * * 128 | 129 | - [14.Printing Stars in 'H' Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/14.Printing%20Stars%20in%20'H'%20Shape.py) 130 | 131 | * * 132 | * * 133 | * * 134 | ***** 135 | * * 136 | * * 137 | * * 138 | 139 | - [15.Printing Stars in 'I' Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/15.%23Printing%20Stars%20in%20'I'%20Shape%20.py) 140 | 141 | 142 | ***** 143 | * 144 | * 145 | * 146 | * 147 | * 148 | ***** 149 | 150 | 151 | - [16.Printing Stars in 'J' Shape. py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/16.Printing%20Stars%20in%20'J'%20Shape.py) 152 | 153 | ***** 154 | * 155 | * 156 | * * 157 | ** 158 | - [17.Printing Stars in 'K' Shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/17.Printing%20Stars%20in%20'K'%20Shape.py) 159 | 160 | 161 | * * 162 | * * 163 | * * 164 | * * 165 | * * 166 | 167 | - [18.Printing stars in 'L' shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/18.Printing%20stars%20in%20'L'%20shape.py) 168 | 169 | * 170 | * 171 | * 172 | * 173 | * * * * 174 | - [19.Printing stars in 'M' shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/19.Printing%20stars%20in%20'M'%20shape.py) 175 | 176 | * * 177 | ** ** 178 | * * * * 179 | * * * 180 | * * 181 | * * 182 | * * 183 | 184 | - [20.Printing stars in 'N' shape.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/20.Printing%20stars%20in%20'N'%20shape.py) 185 | 186 | * * 187 | ** * 188 | * * * 189 | * * * 190 | * * * 191 | * ** 192 | * * 193 | - [21.Printing stars in 'O' shape.py ](https://github.com/Kushal997-das/Pattern_Printing/blob/master/21.Printing%20stars%20in%20'O'%20shape.py) 194 | 195 | *** 196 | * * 197 | * * 198 | * * 199 | *** 200 | 201 | - [22.Printing stars in 'P' shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/22.Printing%20stars%20in%20'P'%20shape.py) 202 | 203 | **** 204 | * * 205 | * * 206 | **** 207 | * 208 | * 209 | 210 | - [23.Printing stars in 'Q' shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/23.Printing%20stars%20in%20'Q'%20shape.py) 211 | 212 | *** 213 | * * 214 | * * 215 | * * 216 | *** 217 | * 218 | - [24.Printing stars in'R' shape.py](https://github.com/Kushal997-das/Pattern_Printing/blob/master/24.Printing%20stars%20in'R'%20shape.py) 219 | 220 | **** 221 | * * 222 | * * 223 | **** 224 | * * 225 | * * 226 | * * 227 | 228 | 229 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | 204 | -------------------------------------------------------------------------------- /Untitled-1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tomato Timer 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |
28 |
29 |

TomatoTimer

30 |
31 | 37 |
38 |
39 | 40 |
41 | 42 |
43 |
44 |
    45 |
  • 46 |
  • 47 |
  • 48 |
49 |
50 |
51 |
52 | 53 |
54 |
55 |
56 |


57 |
58 |
59 | 60 | 61 |
62 |
63 |
64 |
65 |
66 | 67 |
68 | 69 |
70 |
71 | 72 |
73 |
74 | 75 |
76 |
77 |
78 |
79 |

80 |
81 |
82 |
83 |
Keyboard Shortcuts
84 |
    85 |
  • SPACE   Start or Stop the timer
  • 86 |
  • ALT + P  Pomodoro
  • 87 |
  • ALT + S  Short Break
  • 88 |
  • ALT + L  Long Break
  • 89 |
  • ALT + R  Reset Timer
  • 90 |
91 |
92 |
93 |
94 |
95 |
Notifications
96 |
You can change the audio tone and volume via Settings
97 |
Desktop Notifications are currently supported in Chrome, Firefox and Safari
98 | Enable Desktop Alerts 99 |
100 |
101 |
102 |
103 |
Settings
104 |
You can set custom times, audio tone and volume via Settings.
105 | 106 |
107 |
108 |
109 | 110 | 111 | 112 | 113 | 114 |
115 |
116 | Q. What is Pomodoro Technique? 117 |
118 | 119 |
120 | A. The time management technique created by Francesco Cirillo for a more productive way to work and study. For more information, click here. 121 |
122 | 123 |
124 |
125 |
126 | 127 |
128 | Q. Can you tell me the story without having to visit the website? 129 |
130 | 131 |
132 |
133 | A. Well, it comprises of the following basic steps: 134 |
135 | 136 |
    137 |
  • Decide on the task at hand
  • 138 |
  • Set the Pomodoro (timer) to 25 minutes
  • 139 |
  • Work on the task until the timer expires; Record with an X
  • 140 |
  • Take a Short Break (5 minutes)
  • 141 |
  • Every four "pomodoros", take a Long Break (10 minutes)
  • 142 |
143 |
144 | 145 |
146 | Q. What is TomatoTimer? 147 |
148 | 149 |
150 | A. It's an easy to use, flexible Pomodoro Technique timer. It was inspired by Tomatoi.st and it uses jQuery and HTML5 features like Desktop Notifications, Audio API and Local Storage instead of relying on Adobe Flash and other such technologies. 151 |
152 | 153 |
154 |
155 |
156 | 157 |
158 | Q. Why use TomatoTimer? 159 |
160 | 161 |
162 | A. Here's why: 163 |
    164 |
  • Clean and Crisp interface with a Mobile friendly layout.
  • 165 |
  • Ability to Pause or Reset the timer intervals.
  • 166 |
  • Audio notifications at the end of a timer period.
  • 167 |
  • Desktop notifications. (Only supported in Google Chrome)
  • 168 |
  • Keyboard shortcuts.
  • 169 |
  • Ability to change the alert sound + volume via Settings
  • 170 |
  • Custom Timer Intervals
  • 171 |
  • A history of your activity. (Coming soon.)
  • 172 |
173 |
174 |
175 | 176 |
177 | Q. I've got some feedback. How do I get in touch with you? 178 |
179 | 180 |
181 | A. Email me. 182 |
183 | 184 |
185 |
186 |
187 | 188 |
189 | Receive early access to our new platform and news about feature updates to TomatoTimer! Signup for our mailing list: Sign up! 190 |
191 | × 192 |
193 | 194 |
195 |

Options

196 |

User preferences

197 |

198 | 199 | 200 |

201 | 202 |

203 | 204 | 205 |

206 | 207 |

208 | 209 | 210 |

211 | 212 |

213 | 214 | 215 |

216 | 217 |

Select Sound

218 | 225 |

Select Volume

226 | 233 |

Set Custom Times (in minutes)

234 |
235 |
236 | 237 | 238 |
239 |
240 | 241 | 242 |
243 |
244 | 245 | 246 |
247 |
248 |

249 | 250 | 251 | 252 |
253 | × 254 |
255 | 256 |
257 |

Time log

258 |
259 |
Pomodoro goal tracker:
260 |
261 |
262 |
263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 |
SessionStart timeEnd timeDescription
271 | 272 |
273 | 274 | × 275 |
276 | 325 | 326 | 327 | --------------------------------------------------------------------------------