Answers for "program of sum of 2 numbers in c"

C
3

add 2 numbers in c

#include<stdio.h>
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Posted by: Guest on December-22-2020
0

add 2 numbers in c

#include <stdio.h>

int addNumbers(int a, int b)
{
    int sum = a + b;
    return sum;
}

int main(void)
{
    int a = 4;
    int b = 7;

    printf(addNumbers(a,b));
    return 0;
}
Posted by: Guest on April-01-2022

Code answers related to "program of sum of 2 numbers in c"

Code answers related to "C"

Browse Popular Code Answers by Language