Addition Of Two Numbers In C Or Sum of Two Numbers In C Programming Language

Sum Of Two Numbers



/* program to show the SUM of two numbers*/

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

  int main()
  {
  clrscr();
  int a, b, sum=0,sub=0;
  printf("Pls Enter the Value for first no.: ");
  scanf("%d",&a);
  printf("Enter The value of second number:" );
  scanf("%d",&b);
  sum=a+b;
  printf("\nthe total of two number is %d",sum);
  sub=a-b;
  printf("\nThe substraction of Two Numbers %d",sub);
  getch();
  return 0;
  }
sum-of-2-numbers-main 
  
 

Output


sum-of-2-numbers 



Facebook Likes

Youtube