-->

C++ if..else programs

1) Write a program to know a number is even or odd.

                                                solution
2) Write a program to know a number is divisible by both 3 and 5 or not.

                                                 solution
3) Write program to know a number is positive or negative or zero.
                                                 solution

4)Write a program to know two numbers entered by you are same or not.

                                              solution
5) Write a program to get greatest number among three numbers.

                                                                                                   solution
6)Write a program to know a number entered by you lies between two values/range or not.

                                                                                                  solution
7)Write a program to get smallest number among three numbers.

                                                                                                 solution
8)Write a program to get sum or product or difference or quotient of two numbers using switch.


                                                                                             solution
9) Write a program to know a triangle is right angled or not.

                                                                                         solution

10) Write a program to know a triangle is equilateral or not.

                                                                                         solution
                                                                               

HTML with SVG to draw circle.

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <circle cx="50" cy="50" r="40" stroke="green" stroke-width="15" fill="red" />
        <!--since we are going to draw circle, we use attributes-->
        <!-- here cx is x co-ordinate,cy is y-co-ordinate, r is radius,stroke is boundary color,stroke-width means width of circle outline 
            and fill means color inside circle-->
        
        
        
        </svg>




    </body>


</html>

HTML with SVG to draw rectangle

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <rect x="50" y="20" rx="5" ry="9" width="200" height="100" stroke="purple" stroke-width="4px" fill="green"/>
        <!--since we are going to draw rectangle with round corner, we use attributes-->
        <!-- here width is the length ,height is breadth, stroke is boundary color,stroke-width means width of rectangle outline 
            and fill means color inside rectangle-->
            <!--further
            x is x co-ordinate, 
            y is y-co-ordinate
            rx is radius of x co-ordinate
            ry is radius of y-co-ordinate
            -->
        
        
        
        </svg>




    </body>


</html>

HTML with SVG to draw rectangle

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <rect width="300" height="200" stroke="purple" stroke-width="4px" fill="green"/>
        <!--since we are going to draw rectangle, we use attributes-->
        <!-- here width is the length ,height is breadth, stroke is boundary color,stroke-width means width of rectangle outline 
            and fill means color inside rectangle-->
        
        
        
        </svg>




    </body>


</html>

HTML with SVG to draw ellipse.

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <ellipse cx="50" cy="50" rx="40" ry="30" stroke="green" stroke-width="15" fill="red" />
        <!--since we are going to draw circle, we use attributes-->
        <!-- here cx is x co-ordinate,cy is y-co-ordinate, 
            rx is x-radius,
            ry is y radius,
            stroke is boundary color,stroke-width means width of circle outline 
            and fill means color inside circle-->
        
        
        
        </svg>




    </body>


</html>

HTML with SVG to draw line

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <line x="3" y="3" x1="400" y1="30" stroke="green" stroke-width="15" fill="red" />
        <!--since we are going to line, we use attributes-->
        <!-- here x is first x co-ordinate,y is first y-co-ordinate, 
            x1 is second x-coordinate,
            y1 is second y co-ordinate,
            stroke is boundary color,stroke-width means width of circle outline 
            and fill means color inside circle-->
        
        
        
        </svg>




    </body>


</html>svg to draw line

HTML with SVG to draw polygon.

<html>

<head>

    <head>
        <title>
            html with SVG tag. It stands for scalable vector graphics.It is used for vector based graphics in XML. We use this tag for graphics on web/page.
        </title>
    </head>

    <body>
        <svg width="100" height="100">
            <!--we always use svg for image size. If we donot, it takes 0,0 by default-->

            <polygon points="12,13 14,15 16,19" stroke="green" stroke-width="15" fill="red" />
        <!--since we are going to Polygon, we use attributes-->
        <!-- here 12 and 13 are first x and y-co-ordinate, 
            here 14 and 14 are second x and y-co-ordinate,
             and so on.
           -> stroke is boundary color,stroke-width means width of circle outline 
            and fill means color inside circle
        
        -->
        
        
        
        </svg>




    </body>


</html>