Posts

Showing posts from December, 2017

Swapping using third variable in c and c++ and any language use logic.

Image
 Swapping using third variable in c,c++,java and any language use logic....... // swapping using third variable. #include<stdio.h> #include<conio.h> void main(){     int a,b,c;     clrscr();     printf("Enter the value of a=\t");     scanf("%d",&a);     printf("Enter the value of b=\t");     scanf("%d",&b);     printf("before swapping\n");     printf("a is=%d",a);     printf("\nb is=%d\n",b);     c=a;     a=b;     b=c;     printf("after swapping\n");     printf("a is=%d\n",a);     printf("b is=%d",b);     getch(); } Divanshu Sindhwani

Swapping without using 3rd variable in c and c++ and any language use logic

Image
Swapping  without  using third variable in c,c++,Java,JavaScript and any language logic.... // swapping without third variable. #include<stdio.h> #include<conio.h> void main(){     int a,b;     clrscr();     printf("Enter the value of a=\t");     scanf("%d",&a);     printf("Enter the value of b=\t");     scanf("%d",&b);     printf("before swapping\n");     printf("a is=%d",a);     printf("\nb is=%d\n",b);     a=a+b;     b=a-b;     a=a-b;     printf("after swapping\n");     printf("a is=%d\n",a);     printf("b is=%d",b);     getch(); } Divanshu Sindhwani

Heading tag in HTML

Image
Q: Heading tag in html Ans: There are six type of heading tag Example of heading tag. <html> <title>use of heading tag</title> <body> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </body> </html>

JAVA SCRIPT SIMPLE PROGRAM

Image
Java script 1 program <html> <title>simple java script program</title> <body> <script> document.write("welcome to JS"); </script> </body> </html>                                                                         output

HTML& CSS USERNAME AND PASSWORD PAGE CODING

Image
<!DOCTYPE html> <html> <style> form {     border: 3px solid #f1f1f1;     width: 30%;     height: 30%;     } input[type=text], input[type=password] {     width: 100%;     padding: 12px 20px;     margin: 8px 0;     display: inline-block;     border: 1px solid #ccc;     box-sizing: border-box; } button {     background-color: #4CAF50;     color: white;     padding: 14px 20px;     margin: 8px 0;     border: none;     cursor: pointer;     width: 100%; } button:hover {     opacity: 0.8; } .cancelbtn {     width: auto;     padding: 10px 18px;     background-color: #f44336; } .imgcontainer {     text-align: center...