C Program for Addition of two numbers. C program for Addition of two integers.
void main()
{
int i, j,k;
printf("Enter the two numbers to be added--");
scanf("%d%d",&i,&j);
k=i+j;
printf("\nAddition of %d and %d is =%d",i,j,k);
}
The above program accepts two numerals as input and then gives the output.
No comments:
Post a Comment