Thursday, October 22, 2009

How to add two numbers by using a single variable?

#include<stdio.h>
void main()
{
int a;
clrscr();
a=(scanf("%d",&a)+a-1)+(scanf("%d",&a)+a-1);
printf("%d",a);
getch();
}

1 comment:

Thanks for commenting in my blog...