To write a c program to add two numbers without using airthmetic operator.

#include <stdio.h>
#include <conio.h>
void main()
{
int m,n,i;
clrscr();
printf("Enter two nos : \n");
scanf("%d%d",&n,&m);
for(i=1;i<=m;i++)
{
n++;
}
printf("\n Addition of two no is : - %d",n);
getch();
}

0 comments:

Post a Comment