SHOW:
|
|
- or go back to the newest paste.
1 | #include<stdio.h> | |
2 | int total;int sum(int,int);void main() { int a,b; printf("\n Enter the two numbers : "); scanf("%d %d",&a,&b); | |
3 | 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) ; } |