write a c program to add two numbers

                         c- program                                 
 

                        write a C- program to add two numbers 

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int a,b,sum;
  6. clrscr();
  7. printf("enter the two numbers ");
  8. scanf("%d\n%d\n",&a&b);
  9. sum= a+b;
  10. printf("the sum of the given number is =%d",sum);
  11. getch();
  12. }



                         output
       the output is 



enter the two numbers 
2
3
the sum of the given numbers is = 5





Comments