ShivamSinghal1 / Competitive-Programming-Algorithms

The purpose of this repository is to get all the Algorithms required for Competitive Programming at one place. This will be very helpful. Also one can contribute to this repository and learn something from this.
https://codedigger.tech
21 stars 48 forks source link

Added Clockwise Spiral Pattern printing animation program #46

Open OjusWiZard opened 4 years ago

OjusWiZard commented 4 years ago

This program takes two integers for the width and height of the Pattern, and then print the Spiral pattern with animation as if a snake is moving.

Example

The Pattern occupies the height and width as given as an input, and the pattern-line always remains one unit away from itself.