sum of two number without using additional operator

Sum  of two number without using additional operator 











STUDY EVERTHING




 #include <stdio.h>

#include <conio.h>
int main(){
   int x, y;
  printf("Enter a number: ");
 scanf("%d %d", &x, &y);
 while(y!=0 ){
     x++;
     y--;
 } 
 printf("sum is %d", x);
 return 0;

 }




Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post