Popular posts from this blog
HTML& CSS USERNAME AND PASSWORD PAGE CODING
<!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...
Swapping using third variable in c and c++ and any language use logic.
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

Comments
Post a Comment