//c program to add nos using function
#include<stdio.h> long addition(long, long); void main() { long first, second, sum; printf("Enter 2 no"); scanf("%ld%ld", &first, &second); sum = addition(first, second); printf("%ld\n", sum); } long addition(long a, long b) { long result; result = a + b; return result; }
No comments:
Post a Comment