sum of two integer number – C Program

Sum of two integer number – C Program

Write a c program for sum of two integer given number.

In this c program we will input two integer number and get sum of them in result.

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

viod main()
 {
  int a,b,sum;

  printf("Enter the first value : \n");
   scanf("%d",&a);
  printf("Enter the second value : \n");
   scanf("%d",&b);
  sum =a+b;
   printf("The sum is =  %d",sum);

 }

The out put of sum of two integer c program :

Enter the first value :
6
Enter the second value :
5

The sum is = 11

Author: Meera Academy

Leave a Reply

Your email address will not be published. Required fields are marked *