Archive for the ‘CODE’ Category

Addition of 2 number without third variable

August 29, 2010

//Addition of 2 nos. without third variable
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf(“\nEnter the value for a & b\n\n”);
scanf(“%d%d”,&a,&b);
a=a+b;
printf(“\nAddition=%d”,a);
getch();
}

Hope you liked my posts, give comments if you have any doubts…:)

(more…)