WAP in C to Addition without using third variable

  1. #include<stdio.h>

  2. void main()
  3. {
  4.    int a,b,;
  5.    printf("Enter the Frist no. = ");
  6.    scanf("%d", &a);
  7.    printf("Enter the Frist no. = ");
  8.    scanf("%d", &b);
  9.    
  10.    a = a + b ;
  11.  
  12.    printf("Sum of the Number = %d",a);
  13.  
  14.    return 0;
  15. }

No comments

Creater by Deepak. Powered by Blogger.