Saturday, May 22, 2010

Write a Programe to Add two Digits

#include<stdio.h>
#include<conio.h>
void main ()

{
int a,b,c;
clrscr ();
printf("Enter the number "); //For eg. 2+2//
scanf("%d%d",&a,&b);
c=a+b;
printf("Answere is %d",c); //Answer is 4 //
getch ();
}