Pages

Monday, 21 May 2012

program to input the two number and find out the sum of two numbers


108./*Write a program to input the two number and find out the sum of two numbers*/

#include<stdio.h>
#include<conio.h>
void add();
main()
{
     clrscr();
     add();
     getch();
     }
     void add()
     {
     int x,y,sum;
     printf("Enter two numbers:\n");
     scanf("%d%d",&x,&y);
     sum=x+y;
     printf("\nThe sum of two numbers is: %d",sum);
}

No comments:

Post a Comment