• PHP

    Arithmetic, Logical And Comparison Operation

    Here, Dot(.) is used to concate the statements. <br> tag is used to break the line. <?php $a=10; $b=20; echo "Value of a = $a"."<br>"; echo "Value of b = $b"."<br>"; echo "<br> ***Arithmetic Operator*** <br>"; $c=$a+$b; echo "Addition of $a and $b = $c"."<br>"; $c=$a-$b; echo "Subtraction of $a and $b = $c"."<br>"; $c=$a*$b; echo "Multiplication of $a and $b = $c"."<br>"; $c=$a/$b; echo "Division of $a and $b = $c"."<br>"; echo "<br> ***Comparison Operator*** <br>"; if($a>$b) { echo "$a is greater than $b <br>"; } else if($a<$b) { echo "$a is less then $b <br>"; } else if($a==$b)…

  • PHP

    Print Hello World – PHP Beginner

    Here echo is used to print something in output console. $ is used with variable, in PHP all variables are precedes with $ sign, you have to use $ with all variables. Every line of code must be ended with semicolon (;). Note that every PHP Script must start with <?php and ended with ?>, this means whole script must be written between <?php …. ?>. <?php $a= "Hello World!"; echo $a."<br>"; ?> OutPut Hello World!  

  • PHP

    Design Google Page Using HTML 5

    Here, <link> tag contains rel attribute which is used to control printing of various language. <html> <head> <title>Google</title> <link rel="stylesheet"href="https://fonts.googleapis.com/css?family=Tangerine"> </head> <body> <table align="right" cellpadding="5" cellspacing="5" > <td><a href="" style="color:black;text-decoration:none">Gmail</a></td> <td><a href="" style="color:black;text-decoration:none">Images</a></td> <td><img src="gmenu.png" style="width:25px ; height:25px" /> <td><input type="submit" value="Sign in" style="width:70px ; height:30px;background- color:#4c4cff; color:#FFFFFF;border:none; border-radius:3px;font-weight: bold" /></td> </table> <div align="center" style="padding:130"> <img src="Google.png" style="width:430px ;height:140px;margin-left:90" /> <input type="search" style="width:550px; height:42px; background:transparent;border:2px outset #f1f4f2;margin-left:100" /> <img src="voice.png" style="width:20px ; height:30px" /><br><br> <input type="submit" name="search" value="Google Search" style="width:130px; height:35px; background-color:#f1f4f2;border:none;border-radius:3px;color:#6f8877;font-weight: bold;margin-top:20;margin-left:90"> <input type="submit" name="lucky" value="I'm Feeling Lucky" style="width:130px; height:35px; background-color:#f1f4f2;border:none;border-radius:3px;font-weight: bold;color:#6f8877"> <table style="margin-left:120;font-size:15"> <td>Google offered in :</td> <td><a…

  • PHP

    Use Of Div Tag

    <div> tag is used to create the container in webpage. It will used to design some portion of webpage. <html> <head> <title>Content</title> </head> <body bgcolor="brown"> <div style="background-color:grey;color:white;font-size:25px" align="center"> <p>Different Types Of Functions Are Displayed Here...</p> <p>Content Display Here</p></h1> </div> </body> </html> OutPut

  • PHP

    Simple Design Contact Form

    <html> <head> <title>Contact Form</title> <style type="text/css"> td { font-size: 15pt; } </style> </head> <body align="center" bgcolor="#83ccd2"> <h2><b><u>CONTACT FORM</u></b></h2> <form method="post" name="contactform" action="cform.php"> <table align="center" border=3 bordercolor="black"> <tr> <td>Name : </td> <td><input type="text" name="name" placeholder="Firstname Secondname Lastname" size="40" required></td> </tr> <tr> <td>Email : </td> <td><input type="email" name="email" placeholder="abc123@gmail.com" size="40" required></td> </tr> <tr> <td>Mobile No. : </td> <td><input type="number" name="mno" placeholder="0123456789" required></td> </tr> <tr> <td>Message : </td> <td><textarea rows="7" cols="25" name="msg" placeholder="Write Your Message Here"></textarea></td> </tr> <tr> <td><input type="submit" name="submit" value="SUBMIT"></td> <td><input type="reset" name="reset" value="RESET"></td> </tr> </table> </form> </body> </html> OutPut

  • PHP

    Simple Design Feedback Form

    <style> tag is used to apply the css. <form> tag is used to used form attributes. <table> tag is used to create table. <tr> tag creates the row and <td> tag is used to create the column. <th> tag is used to apply header row for table. <html> <head> <title>Feedback Form</title> <style type="text/css"> td { font-size: 15pt; } </style> </head> <body align="center" bgcolor="#cd93cc"> <h2><b><u>FEEDBACK FORM</u></b></h2> <form method="post" name="feedbackform" action="fform.php"> <table align="center" border=3 bordercolor="black"> <tr> <td>Name : </td> <td><input type="text" name="name" placeholder="Firstname Secondname Lastname" size="40"></td> </tr> <tr> <td>Enrollment No. : </td> <td><input type="number" name="mno" placeholder="166470307001"></td> </tr> <tr> <td>Email : </td> <td><input…

  • PHP

    Displaying Image And Demonstrate Hyper Linking.

    <a> tag is used to use hyperlink, href attribute contains the actual link. <img> tag is used to display image, src attributes contains the actual link. imageDemo.html <html> <head> <title>Image Link Demo</title> </head> <body bgcolor="#f5e44c" align="center"> <br/><h1><u>Display Image Demonstrate Hyper Linking</u></h1> <h2>Click on image or link to get motivational videos....</h2><br/> <a href="videoDemo.html"><img src="sandip2.jpg" width="400" height="400"></a> <br/><h3><a href="videoDemo.html">SANDIP MAHESHWARI</a></h3> </body> </html> videoDemo.html There are three ways to display video using HTML. <video> tag <embed> tag <iframe> tag <video> tag is used to display video, <video> tag contains <source> tag that takes src attribute to provide link of video. <embed> tag directly takes src…

  • Android With Java

    Activity Lifecycle

    Basically, the one screen of mobile is knows as Activity in Android. Android Activity Lifecycle is controlled by 7 methods which are included in android.app.Activity class. The android Activity is the subclass of ContextThemeWrapper class. An activity is the single screen in android. It is like window or frame of Java. By the help of activity, you can place all your GUI components or widgets in a single screen. The activity goes from one state to another which is known as activity lifecycle. Methods Of Activity Lifecycle Method Description onCreate called when activity is first created. onStart called when activity…

  • C++ Language

    Printing Hello World In C++

    Learning C++ programming can be simplified into: Writing your program in a text-editor and saving it with correct extension(.CPP, .C, .CP) Compiling your program using a compiler or online IDE The “Hello World!” program is the first step towards learning any programming language and also one of the simplest program you will learn. All you have to do is display the message “Hello World!” on the screen. Then let’s get started. Here, #include<iostream> is header file that contains standard input output library functions. A namespace is a form of scope in C++ that holds its own definitions for variables, functions,..…

  • C language

    Fibonacci Series With Recursion And Without Recursion

    There are two ways to write the Fibonacci Series program: Fibonacci Series without recursion Fibonacci Series using recursion Fibonacci Series Without Recursion #include<stdio.h> #include<conio.h> void main() { int n1=0,n2=1,n3,i,number; clrscr(); printf("Enter the number of elements:"); scanf("%d",&number); printf("\n%d %d",n1,n2); //print 0 and 1 for(i=2;i<number;++i) //loop starts from 2 because 0 and 1 are already printed { n3=n1+n2; printf(" %d",n3); n1=n2; n2=n3; } getch(); } OutPut Enter the number of elements:15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Fibonacci Series With Recursion #include<stdio.h> #include<conio.h> void printFibonacci(int n){ static int n1=0,n2=1,n3; if(n>0) { n3 =…