In C Programming How to Add two Number

How to add two number in c programming step by step code.

#include <stdio.h>
#include<conio.h>
void main()
{
  int a,b,sum;
  printf("Enter two numbers to add:\n");
  scanf("%d%d",&a,&b);
  sum=a+b;
  printf("Sum of the numbers= %d\n",sum);
  getch();
}

Output:
Enter two number to add:
5
4
Sum of numbers=9

Comments

  1. Replies
    1. No Bro it's easy
      And very interesting
      Aap ek bar Karo ge to aap ko abhot easy lagega

      Delete

Post a Comment