C Program to find sum of two numbers



  1. C  program to find sum of two numbers?
    Answer:
    #include<stdio.h>
    int main()
    {
     int a,b,sum;
    printf("Enter any two numbers");
    scanf("%d%d",&a,&b);
    sum=a+b;
    printf("Sum of two numbers is %d ", sum);
    return 0;
    }
  2. C program to find difference of two numbers?
    Answer:
    #include<stdio.h>
    #include<stdio.h>
    int main()
    {
     int a,b,diff;
    printf("Enter any two numbers");
    scanf("%d%d",&a,&b);
    diff=a-b;
    printf("Difference of two numbers is %d ", diff);
    return 0;
    }
  3. C program to find product of two numbers?
    Answer:
    #include<stdio.h>
    int main()
    {
     int a,b,prod;
    printf("Enter any two numbers");
    scanf("%d%d",&a,&b);
    prod=a*b;
    printf(" Product of two numbers is %d ", prod);
    return 0;
    }