/*WAP to add two number or find the sum of two number using UDF functions with return value*/
#include<stdio.h> #include<conio.h> int addint(int,int); void main() { int num1,num2,ans; clrscr(); scanf("%d %d",&num1,&num2); ans=addint(num1,num2); printf("%d",ans); getch(); } int addint(int n1, int n2) { return(n1+n2); }
No comments:
Post a Comment