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

    We can inter change values with out using third variable.


    //This is a program to interchange values of to number without using third variable

    #include<stdio.h>
    int main()
    {
    int a,b;
    printf("Enter the frist number ");
    scanf("%d",&a);
    printf("\nEnter the scond number ");
    scanf("%d",&b);
    a=a*b;
    b=a/b;
    a=a/b;
    printf("\nThe interchanged values are\nThe frist number is %d\nThe scond number is %d\n",a,b);
    return 0;
    }

    The output will be.....

    2 comments: