Swapping of two numbers
#include <stdio.h> int main() { int x, y; int temp; printf ("Enter the value of x and y\n"); scanf ("%d%d", &x, &y); printf ("Before Swapping\n x = %d\n y = %d\n",x,y); temp = x; x = y; y = temp; printf ("After Swapping\n x = %d\n y = %d\n",x,y); return 0; }
Swapping of two numbers in C
Monday, 7 January 2013
Subscribe to:
Post Comments (Atom)
Labels
- Armstrong Number (1)
- armstrong series (1)
- ATM Programing in C (1)
- c example (2)
- c language example (1)
- C program (9)
- c program of divided by 7 (1)
- code for pascal triangle (1)
- concatenate two strings (1)
- Construct Pyramid of Numbers (1)
- digital clock (1)
- Digital clock in c (1)
- Enable or disable USB ports (1)
- fibonacci sequence (1)
- fibonacci series (2)
- find cube in c (1)
- find square in c (1)
- finding the length of string (1)
- floyd triangle (1)
- Floyd Triangle in C (1)
- generate fibonacci series (1)
- heap sort (1)
- length of string in c (1)
- linear linked list (1)
- linked list (1)
- odd number (1)
- odd numbers in c (1)
- pascal triangle (1)
- pascal triangle in c (1)
- pascal's triangle (1)
- pattern of number (1)
- prime numbers (1)
- print message (1)
- print message in c (1)
- pyramid (1)
- pyramid in c (1)
- pyramid of numbers (1)
- strcat (1)
- string length (1)
- strlen (1)
- To Find the Length of any string (1)
- To generate a Fibonacci series in C Programming (1)
- to generate prime numbers (1)
- To Print Any Message on Screen (1)
- to print numbers (1)
- to print Odd numbers (1)
- to print series (1)
- USB Port Programming in C (1)
- Why to use C ? (1)
No comments:
Post a Comment