C program to perform addition

Program :-

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;                                //create a,b&c variable of int data type
printf("Enter value of A :");
scanf("%d",&a);                  // Read value of a from user
printf("Enter value of B;");
scanf("%d",&b);                  // Read value of b from user
c=a+b;                                 // Store the value of a+b in c
printf("Sum = %d",c);        // Print sum
getch();
}
Output :-
Enter the value of A :20
Enter the value of B :30
Sum = 50