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


Amie TV question paper
1FATP8UH3K5159596 Ford Mustang 2019 Blue 2.3L
1FATP8UH3K5159596 Ford Mustang 2019 Blue 2.3L
previous year Question Paper OF COMPUTER NETWORKS WINTER 10
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

 

 

 

 

 

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: Bing [Bot]