C program sum of Two numbers without using + operator

#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,i;
clrscr();
printf("Enter First Number:- ");
scanf("%d",&x);
printf("Enter Second Number:- ");
scanf("%d",&y);
for(i=0;i<=y;i++)
{
 x++ ;
}
printf("Sum of two number is:- %d",x);
getch();
}

OUTPUT:-

sum of two numbers

Leave a Reply

Your email address will not be published. Required fields are marked *