Code Scrappers


Sum Of Two numbers C program


              #include<stdio.h>
              #include<stdlib.h>

              void main()
              {
                  int a, b, sum;

                  printf("enter the value of a\n");

                  scanf("%d",&a);

                  printf("enter the value of b\n");

                  scanf("%d",&b);

                  sum = a+b;

                  printf("sum = %d",sum);
              }
          



Output

    enter the value of a
    25
    enter the value of b
    15
    sum = 40