Adding two numbers (C)
This very simple program is about adding two integers and printing them.
🎁Code:
#include <stdio.h>
int add(int n1, int n2){
return n1 + n2;
}
int main(int argc, char** argv){
int sum = add(/*1st number*/ 3,/*2nd number*/ 4);
printf("%d", sum);
return 0;
}
Output:
7
Comments
Post a Comment