Last active
August 29, 2015 14:10
-
-
Save sterkhedkar/e796ccab759927cbc52a to your computer and use it in GitHub Desktop.
A simple C program for Adding two integers Using Parametrised Function.
This file contains hidden or 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
//Demo Program for addition of two integers | |
#include<stdio.h> | |
int main(){ | |
int a,b,c; | |
printf("Enter two integers"); | |
scanf("%d %d",&a,&b); | |
c=add(a,b); | |
printf("Addition is: %d",c); | |
getch(); | |
} | |
int add(intx,inty){ | |
int temp; | |
temp = x+y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment