Addition of numbers in c language.

                       Addition of two numbers

This programme add two number taken from the user.

   
https://programminghub1999.blogspot.com/


                                   The following method has used in programme

  1. Take two input from the user.
  2. Add them .
  3. And store the result into other variable.
  4. Then display the result.
    

                             Addition of number



#include<stdio.h>
#include<conio.h>
void main()
{
     int n,m,s=0;
    printf("Enter 1st number");
    scanf("%d",&n);
    printf("Enter 2nd number:");
    scanf("%d",&m);
    s=n+m;
    printf("Sum of number is %d",s);
    getch();
}




Addition of numbers in c language. Addition of numbers in c language. Reviewed by Deepak kumar soni on October 16, 2018 Rating: 5

No comments:

Powered by Blogger.