## Posts

### 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 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. css 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 givin