Skip to content

Latest commit

 

History

History
133 lines (119 loc) · 1.74 KB

File metadata and controls

133 lines (119 loc) · 1.74 KB

Star Pattern Questions

Pattern-1 : See Soution here

*	
*	*	
*	*	*	
*	*	*	*	
*	*	*	*	*	

Pattern-2 : See Soution here

*	*	*	*	*	
*	*	*	*	
*	*	*	
*	*	
*

Pattern-3 : See Soution here

				*	
			*	*	
		*	*	*	
	*	*	*	*	
*	*	*	*	*	

Pattern-4 : See Soution here

*	*	*	*	*	
	*	*	*	*	
		*	*	*	
			*	*	
				*

Pattern-5 (n should be odd) :
See Soution-1 here
See Soution-2 here (done with single loop)

		*	
	*	*	*	
*	*	*	*	*	
	*	*	*	
		*	

Pattern-6 (n should be odd) : See Soution here

*	*	*		*	*	*	
*	*				*	*	
*						*	
*	*				*	*	
*	*	*		*	*	*	

Pattern-7 : See Soution here

*	
	*	
		*	
			*	
				*		

Pattern-8 : See Soution here

				*	
			*		
		*			
	*				
*

Pattern-9 (n should be odd) : See Soution here

*				*	
	*		*		
		*			
	*		*		
*				*	

Pattern-10 (n should be odd) : See Soution here

		*	
	*		*	
*				*	
	*		*	
		*	

Pattern-11 (n should be odd) : See Soution here

		*	
		*	*	
*	*	*	*	*	
		*	*	
		*	

Pattern-12 (n should be odd) : See Soution here

*	*	*	*	*	*	*	
	*				*	
		*		*	
			*	
		*	*	*	
	*	*	*	*	*	
*	*	*	*	*	*	*	

Pattern-13 (n should be odd) : See Soution here

*	*	*	*			*
			*			*
			*			*
*	*	*	*	*	*	*
*			*		
*			*	
*			*	*	*	*

Pattern-14 (n should be odd) : See Soution here

*				*	
*				*	
*		*		*	
*	*		*	*	
*				*