Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #numbers
ADD COMMENT
Topic
Name
2+5 =