*****Last Ten Active Topic***


e-book of material science and engineering by kakani
Project Report
Free Download AMIE Section A study notes on AD 304
AMIE Section A Video tutorial on FDM AD-301
EXAM FOR SECTION A
C AND C++ PROGRAMMING TUTORIAL GUIDE
project work 2018
AD302 material science summer 2018
Free download question paper of material science winter 2016
Notes for Pulse & Digital circuit

 

 

 

 

 

Registration Running on Online Classes for AMIE Summer 2018 Click Here to Register

C PROGRAMME TO SWAP/INTERCHANGE TWO GIVEN NUMBERS

Discuss your AMIE related anything quaries.....

C PROGRAMME TO SWAP/INTERCHANGE TWO GIVEN NUMBERS

Postby RAVIGARU » Tue Aug 21, 2012 12:19 am

C PROGRAMME TO SWAP/INTERCHANGE TWO GIVEN NUMBERS
THIS IS A VERY IMPORTANT C PROGRAMME

Code: Select all
   
    #include<stdio.h>
    #include<conio.h>
    main()
   {
   int x, y, temp;
 
   printf("Enter the value of x and y\n");
   scanf("%d%d", &x, &y);
 
   printf("Before Swapping\nx = %d\ny = %d\n",x,y);
 
   temp = x;
   x = y;
   y = temp;
 
   printf("After Swapping\nx = %d\ny = %d\n",x,y);
   getch();
  }


OUTPUT Screen shot is

Swap.jpg
You do not have the required permissions to view the files attached to this post.Please Register yourself to Download for register click on REGISTER
RAVIGARU
Adviser
Adviser
 
Posts: 313
Joined: Sat May 05, 2012 9:47 pm

Return to GENERAL DISCUSSION

Who is online

Registered users: No registered users