Thank you all for being with us.
Learn, Create and Implement.

  • Build Concept

    You can build your concept in programming on programsway.com.

  • Examples

    There are many C Programming examples on programsway.com.

  • Ask Questions

    Ask questions and get quick answers. Request any program and we will publish that program.

  • Friday, 8 March 2013

    This is a simple program to swap the values using third variable.


    //This is a program to interchange vaules of to number using thrid variable
    #include<stdio.h>
    int main()
    {
    int fst_num,snd_num,trd_num;
    printf("Enter the frist number ");
    scanf("%d",&fst_num);
    printf("\nEnter the scond number ");
    scanf("%d",&snd_num);
    trd_num=fst_num;
    fst_num=snd_num;
    snd_num=trd_num;
    printf("\nThe interchanged values are\nThe frist number is %d\nThe scond number is %d\n",fst_num,snd_num);
    return 0;
    }

    The output of this program will be.....



    1 comment: