Friday, April 11, 2014

C program for Addition

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,ans;
printf("Enter two numbers:");
scanf("%d%d",&a,&b);
ans=a+b;
printf("Solution is:%d",ans);
getch();
}

No comments:

Post a Comment

Pages