2/21/2009

C Program To Perform Addition Of Two Numbers Without Using + Operator



/*C Program To Perform Addition Of Two Numbers Without Using + Operator*/

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b,c;
    printf("Enter two numbers: \n");
        scanf("%d%d",&a,&b);
    c=a-(-b);

      printf("Sum Of Two Numbers = %d\n",c);
    return 0;
}
Out Put:
Enter two numbers:
6
4
Sum Of Two Numbers = 10

No comments:

Post a Comment