sum.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int add(int a, int b){ | |
return a+b; | |
} | |
int main(int argc, const char * argv[]) { | |
// insert code here... | |
int a,b; | |
printf("First number "); | |
scanf("%d",&a); | |
printf("Second number "); | |
scanf("%d",&b); | |
int sum = add(a, b); | |
printf("A plus b equals %d", sum); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment