Selection sort (code & Algorithm)

Image
I n this blog you have to know all about the Selection sort, Step by step how to work Selection sort Algorithm and also you have to know how to write code in an easy way for selection sort. In Selection sort we are arranging unordered number in a correct order, Examples: This is unordered number (9,6,4,7,3,2,4,5,) but by using selection sort we can arrange in ascending order (2,3,4,5,6,7,9) this is our selection sort, to arrange in an order of given unorder number.       A lgorithm: f C ode for Selection sort: #include <stdio.h> // Function to perform selection sort on an array void selectionSort ( int arr [] , int n ) {     int i , j , min_idx , temp ;     // One by one move boundary of unsorted subarray     for ( i = 0 ; i < n - 1 ; i ++ ) {         // Find the minimum element in unsorted array         min_idx = i ;         for ( j = i + 1 ; j < n...

By using CSS make a card in easy way with the help of HTML

How to make card with the help of CSS and HTML.....

This code can help to make in a proper way of your card using CSS and HTML.


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
   <style>
    *{
        margin: 0;
        padding: 0;
       
    }
    .cards{
        display: flex;
        justify-content: center;
       flex-wrap: wrap;
       margin-top: 30px;
       row-gap: 30px;
       column-gap: 30px;
       
    }
    .list1{
        display: flex;
        background-color: red;
        border-radius: 10px;
        margin-right: 5px;
        height: 100px;
        border: 2px solid rgb(72, 72, 207);
       
       
       
    }
    .list1 b{
            color: rgb(18, 1, 1);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: bolder;
            margin: 40px;  
        }
        .list2{
        display: flex;
        background-color: red;
        border-radius: 10px;
        margin-right: 10px;
        height: 100px;
    }
    .list2 b{
            color: rgb(18, 1, 1);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: bolder;
            margin: 40px;  
        }
        .list3{
        display: flex;
        background-color: red;
        border-radius: 10px;
        margin-right: 10px;
        height: 100px;
    }
    .list3 b{
            color: rgb(18, 1, 1);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: bolder;
            margin: 40px;  
        }
        .list4{
        display: flex;
        background-color: red;
        border-radius: 10px;
        margin-right: 10px;
        height: 100px;
    }
    .list4 b{
            color: rgb(18, 1, 1);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: bolder;
            margin: 40px;  
        }
        .list5{
        display: flex;
        background-color: red;
        border-radius: 10px;
        margin-right: 10px;
        height: 100px;
    }
    .list5 b{
            color: rgb(18, 1, 1);
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            font-weight: bolder;
            margin: 40px;  
        }
   </style>
</head>
<body>
    <div class="cards">

        <div class="list1">
           <b>free</b>
           <div class="centent">
           
           </div>
        </div>
        <div class="list2">
            <b>free</b>
         </div>
         <div class="list3">
            <b>free</b>
         </div>
         <div class="list4">
            <b>free</b>
         </div>
         <div class="list5">
            <b>free</b>
         </div>
       
    </div>
   
</body>
</html>

I hope this is helpful for you.

Comments

Popular posts from this blog

Division of Two Number in c language ?

How to Make Calculator by using "switch case" in c language.

Addition of two Number using c language code