code of Game of Chance

   A Game of Chance One of the most popular games o in casinos and back alleys triangular  games of chance is a dice game known as “craps,”  It is played in hack alleys throughout the world.  Following are rules of the Game: roll two dice. Each die has six faces. These faces contain one, two, three, four, five, and six spots.  the dice  to rest, the sum of the spots on the two upward faces is calculate. If sum is 7 or 11 on the first throw, the player wins.  If the sum is two, three, or twelve on the first throw Called "craps"),  the player loses (mean the "house" wins).  If the sum is four, five, six, eighth, nine, or ten on the first throw, then that sum becomes the player's "point.”  To win, you must continue rolling the dice until you make your points. The player loses by rolling a 7 before making the point.  Code of the game:  #include<stdio.h>  #include<stdlib.h>   #include<time.h>  /*contains prototype for function time */ enum Sta

How to use radial gradient in css

 CSS radial gradient Radial gradients define the centre and the color transition outward from the center. The minimum color for making radial gradients is two. What is the syntax of radial gradient? The syntax of radial gradient is : radial-gradient(first color name,second color name,so on); What is an example of radial gradient? Example: Can we give a percentage in the radial gradient?  yes we can give a percentage of the color ingredient and the syntax of giving percentage user color is that: radial-gradient(first color name 80%,second color name20%,so on); Example: Can we remove the default shape of the radial gradient?  yes we can change the default shape of the radial gradient, the default is shape is elliptical Writing following syntax for changing the default shape. . radial-gradient(circle at center , color name ,second color name); .Example: We can also change the position of the circle writing position alo

How to use css margin

  What is CSS margin? The gap between any elements of the web pages is known as margin.  there is 3 type of margins left margin right margin-top margin and bottom margin. why we use a margin on web pages?  All the website on the internet design by the CSS and any gap between any elements or defining the position of the element on the webpage we use Margin in the CSS. sometimes we use texts or images on the web pages that look beautiful at a certain position and the distance between the other elements. In the maximum time gap between the elements outer gaps. we are just with the help of margin as compared to position or padding in CSS. How we remove the default margin on the web page? we can remove the default margin by applying the following CSS code. *{ margin :0; } What are different ways of giving margin in CSS?  There are different ways of giving margin in CSS. Manually write:   P{ magin-left:30px; magin-right:30px; magin-bottom:30px; magin-top:30px; } Shortcut of giving margin va

How to apply gradient in css

   In this article, we will learn about the CSS linear-gradient, how gradient work, how to apply the linear gradient in the background image, how to change the flow of the gradient. The colour gradient Producing colour Transitions with vary continuously colour position. Linear gradient:  By default, the linear gradient is top to bottom flow. You can change the flow of gradient from bottom to top, right to left, left to right, right diagonal and left diagonal with simple changes in the CSS code. Example: .grad{ background-image:linear-gradient(green,yellow); } This is the example of the linear gradient Left to right flow of the gradient: The flow of gradient is also changed by writing the simple code. .grad{ background-image:linear-gradient(to left,green,yellow); } This is the example of the linear gradient   Right to left flow of the gradient: The flow of gradient is also changed by writing the simple code. .grad

CSS or CSS3 flexbox

Flexbox  In this article,we will discuss the flexbox in the CSS language. What is the flexbox? The flexbox is the layout module for the web pages using rows and column concepts.The items are set according to rows or columns of the flexbox. Why flexbox use in CSS? Basically, flexbox is made for designing the layout of a page very easily.The biggest problem is positioning the items on the page,but by using flexbox position the items become very easy . Following are the reasons of using flexbox layout: Positioning the items. Alignment of items. Dividing the page into different boxes. Get rid of float and positioning properties. Help in the responsive pages.   Before, we take an example: let's discuss the concept of flexbox. This divides the whole page into x-axis or y-axis and makes boxes according to the designer, also arrange items on the x-axis or y-axis. Example: flexbox 1 2 3

CSS border width

  CSS border width The css border width property gives the width to the four borders of the box .The width may be thin,thick,medium,or value(px,em,in,cm,pt,etc) Syntax: border-width:<border-top-width> <border-right-width> <border-bottom-width> <border-left-width> border-width:thin; border-width:thick; border-width:medium; Example of css border width: <style type="text/css"> p.thin{ border-style: dashed; border-width: thin; } p.thick{ border-style: dotted; border-width: thick; } p.px{ border-style: solid; border-width: 10px; } p.medium{ border-style: double; border-width: medium; } p.mix{ border-style: ridge; border-color: yellow; border-width: thick medium thin 10px; } </style> Output: This A thin border. This A thick border. This A medium border. This A 10px border. This A Mix border.

Hire a programmer