Monday 10 September 2012

Program For Addition of two numbers in C

Hi, I am Ankit and I am going to describe a very simple program in C for addition of two numbers.


Program:

#include<stdio.h>
#include<conio.h>


=========================================================================
void main()
{
      int a,b,sum;
      printf("Enter first no-");
      scanf("%d",&a);
     
      printf("Enter second no-");
      scanf("%d",&b);
      sum=a+b;
      printf("Sum=%d",sum);
     getch();


}
=========================================================================
If you want more program then leave comment for your help..
=========================================================================

No comments:

Comments System