Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int total;int sum(int,int);void main() { int a,b; printf("\n Enter the two numbers : "); scanf("%d %d",&a,&b);
- total = sum(a,b); printf("\n The sum of two numbers is : %d ",total); getch(); } int sum ( int num1,int num2) { int result; result = num1 + num2 ; return (result) ; }
Add Comment
Please, Sign In to add comment