Skip to main content

Featured

Bulb ON/OFF Animation in html and css

<!DOCTYPE html > <html> <style>   *,   *::after,   *::before {     box-sizing: border-box;   }     body {     background: #001933;   }     .container {     width: 75px;     height: 275px;     animation: bulb-swing 3s infinite ease-in-out;     transform-origin: top center;     position: absolute;     top: 0;     left: calc(50% - (75px/2));   }     .container.paused {     animation-play-state: paused;   }     .bulb {     z-index: 10;     display: block;     width: 75px;     height: 75px;     border-radius: 50%;     position: absolute;     top: 200px;     left: calc(50% - (75px/2));   ...

Make Five(5) like pattern IN C LANGUAGE

/*

Number pattern  (IN C LANGUAGE )

*/

#include <stdio.h>

int main()

{

	int i, j, n = 5;

	int mid = n / 2 + 1;

	 printf("  *********************\n\n");

	 printf("    Number patterns \n\n    See our playlist  \n\nCode link in Description \n\n************************");

	  printf("\n\n       Pattern 5 \n\n");

	for (i = 1; i <= n; i++)

	{

		printf("       "); // only add for better view

		for (j = 1; j <= n; j++)

		{

			if (i == 1 || i == n || i == mid || (j == 1 && i <= mid) || (j == n && i > mid))

			{

				printf("* "); //You also take a number ,#,@,| ,∆ etc.

			}

			else

			{

				printf("  ");

			}

		}

		printf("\n");

	}

	return 0;

}

Output:

Comments

Popular Posts