98 : Sum of two numbers using addition function

Check out the complete list of c-programs : C Program List

``````
/*
============================================================================
Name        : C-Programming
Author      : Code2care
Version     : 1.0
Description : 98 : Sum of two numbers using addition function
============================================================================
*/

#include
#include

int main(void) {

int a, b, sum = 0;

printf("Enter no. A : ");
scanf("%d", &a);

printf("\nEnter no. B : ");
scanf("%d", &b);

printf("\nSum of  %d + %d =  %d ", a, b, addition(a, b));

return 0;
}

int addition(int a, int b) {

return a + b;
} ```

```

• Output :

```Enter no. A : 30

Enter no. B : 40

Sum of  30 + 40 =  70

Enter no. A : 1

Enter no. B : 3

Sum of  1 + 3 =  4
```

The best way to learn C programming is to practice more and more of programs . Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.

BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.