Beginner's Guide To Programming
It's All About Programming.
Contents
C
C++
COBOL
COBOL TUTOR PART 1
SQL
TRICKS AND TIPS
SWAPING 2 VALUES
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter any two values\n");
scanf("%d,%d"a,b);
printf("values before swap:%d,%d"a,b);
c=a;
a=b;
b=c;
printf("\n values after swap: %d,%d"a,b);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Earn upto Rs. 9,000 pm checking Emails. Join now!
No comments:
Post a Comment