Thursday, 15 March 2018

Sum

Sum of two Numbers..

#include<stdio.h>
#include<conio.h>
void main()
{
          int x,y,sum;
          clrscr();
          printf("Enter value for x : ");
          scanf("%d",&x);

          printf("Enter value for y : ");
          scanf("%d",&y);                    //input function
      
         sum=x+y;

         printf("Sum of  two numbers is %d : ",sum);

         getch();
}

No comments:

Post a Comment