About Me

header ads

Program to Add Two Numbers.

Program to Add Two Numbers.

#include <stdio.h>
#include<conio.h>
void main()
{
     int a,b,sum;
     printf(“Enter two numbers\n”);
     scanf(“%d%d”,&a,&b);
     sum=a+b;
     printf(“\nSum=%d”,sum);
     getch();

}

OUTPUT:
Enter two numbers
5
6
Sum=11