Delicious Digg Facebook Favorites More Stumbleupon Twitter

Tuesday 21 August 2012

addition of 2 variables by using dynamic values



    Addition of 2 variables by using dynamic values


           Dynamic values can be changed at run time also.
         
           #include<stdio.h>
            main()
           {
               int a,b;
               clrscr();
               printf("enter the values of a,b:");
               scanf("%d%d",&a,&b);
               c = a+b;
               printf(" c=%d",c);
               getch();
           }

         output:-
                      c=30   

0 comments:

Post a Comment