Program for addition of two numbers by accepting the numbers from user.

/* Program for addition of two integers
using single scanf() for taking input.
Developed by: STUDENT NAME
Class: B/C
Roll number:   10*/

#include<stdio.h>
void main()
{   
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
}

Comments

  1. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  2. #include
    void main()
    {
    int a,b,c;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+yb;
    printf("Addition of two numbers is %d",c);
    }

    ReplyDelete
  3. #include
    void main()
    {
    int a,b,c;
    printf("enter the value of two numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers=%d",c);
    }

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  6. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  7. #include
    void main()
    {
    short int a;
    int b;
    long int c;
    float d;
    double e;
    long double f;
    char g;
    printf("\n bytes occubied by short integer a=%d",sizeof(a));
    printf("\n bytes occubied by integer b=%d",sizeof(b));
    printf("\n bytes occubied by long integer c=%d",sizeof(c));
    printf("\n bytes occubied by float d=%d",sizeof(d));
    printf("\n bytes occubied by double e=%d",sizeof(e));
    printf("\n bytes occubied by long double f=%d",sizeof(f));
    printf("\n bytes occubied by char g=%d",sizeof(g));
    }

    ReplyDelete
  8. #include
    void main()
    {
    int l,m,n;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&l,&m);
    n=l+m;
    printf("Addition of two numbers is %d",n);
    }

    ReplyDelete
  9. #include
    void main()
    {
    int a,b,c;
    printf("Enter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers is %d /n",c);
    }

    ReplyDelete
  10. #include
    void main()
    {
    int a,b,c;
    printf(" enter two integers number\n");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two number is=%d",c);
    }

    ReplyDelete
  11. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two digit numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two digit numbers is %d",z);
    }

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. #include
      void main()
      {
      int a,b,c;
      printf("\nEnter two digit numbers");
      scanf("%d%d",&a,&b);
      c=a+b;
      printf("Addition of two digit numbers is %d",c);
      }

      Delete
  13. #include
    void main()
    {
    int x,y,z;
    printf("\n Enter an integer");
    scanf("%d%d",&x,&y);
    z=x+y
    printf("addition of two numbers is %d",z);
    }

    ReplyDelete
  14. #include
    void main()
    {
    int x,y,z;
    printf("\n enter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("addition of two numbers is%d",z);
    }

    ReplyDelete
  15. #include
    void main()
    {
    int a=10,b=20,c;
    c=a+b;
    printf("Additon of two numbers is %d",c);
    }

    ReplyDelete
  16. #include
    void main()
    {
    int l,m,n;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&l,&m);
    n=l+m;
    printf("Addition of two numbers is %d",n);
    }

    ReplyDelete
  17. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  18. #include
    void main()
    {
    int a,b,c;
    printf("Enter the value");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of two no is %d",c);

    }

    ReplyDelete
  19. #include
    void main()
    {
    int a,b,c;
    printf("Enter the value");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of two no is %d",c);

    }

    ReplyDelete
  20. #include
    void main()
    {
    int a,b,c;
    printf("enter the value of two numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers=%d",c);
    }

    ReplyDelete
  21. #include
    void main()
    {
    int a,b,c;
    printf("Enter the value");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of two no is %d",c);

    }

    ReplyDelete
  22. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  23. #include
    void main()
    {
    int x,y,z;
    printf("Enter the values of x,y");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  24. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  25. #include
    void main()
    {
    int a,b,c;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+yb;
    printf("Addition of two numbers is %d",c);
    }

    ReplyDelete
  26. #include
    void main()
    {
    int a,b,c;
    printf("Enter 2 intergers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of no is %d",c);
    }

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. #include
    void main()
    {
    int a,b,c;
    printf("Enter 2 intergers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of no is %d",c);
    }

    ReplyDelete
  29. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  30. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  31. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  32. #include
    void main()
    {
    int a,b,c;
    printf("enter the value of two numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers=%d",c);
    }

    ReplyDelete
  33. #include
    void main()
    {
    int a,b,c;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+yb;
    printf("Addition of two numbers is %d",c);
    }

    ReplyDelete
  34. #include
    void main()
    {
    int a,b,c;
    printf("Enter 2 intergers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of no is %d",c);
    }

    ReplyDelete
  35. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  36. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  37. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  38. #include
    void main()
    {
    int a,b,c;
    printf("enter two integer");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("adition of numbers is %d",c);
    }

    ReplyDelete
  39. #include
    void main()
    {
    int a,b,c;
    printf("Enter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers is %d /n",c);
    }

    ReplyDelete
  40. #include
    void main()
    {
    int a,b,c;
    printf("Enter two integer numbers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("addition of two numbers is %d /n",c);
    }

    ReplyDelete
  41. #include
    void main()
    {
    int a,b,c;
    printf("Enter 2 intergers");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("Addition of no is %d",c);
    }

    ReplyDelete
  42. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  43. #include
    void main()
    {
    int x,y,z;
    printf("\nEnter two integer numbers");
    scanf("%d%d",&x,&y);
    z=x+y;
    printf("Addition of two numbers is %d",z);
    }

    ReplyDelete
  44. Anonymous6:29 PM

    #include
    void main()
    {
    int x,y,sum;
    printf("enter two integer values");
    scanf("%d,%d",&x,&y);
    sum=x+y;
    printf("the sum of %d and %d is: %d",x,y,sum);
    }

    ReplyDelete
  45. #include
    void main()
    {
    int x,y,sum;
    printf("enter two integer values");
    scanf("%d,%d",&x,&y);
    sum=x+y;
    printf("the sum of %d and %d is: %d",x,y,sum);
    }

    ReplyDelete
  46. #include
    void main()
    {
    int x,y,sum;
    printf("enter two integer values");
    scanf("%d,%d",&x,&y);
    sum=x+y;
    printf("the sum of %d and %d is: %d",x,y,sum);
    }

    ReplyDelete
  47. #include
    void main()
    {
    int a,b,c;
    printf("enter number");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("%d",c);
    }

    ReplyDelete
  48. #include
    void main()
    {
    int a,b,c;
    printf("enter number");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("%d",c);
    }

    ReplyDelete

Post a Comment