alien_fx_fiend

C sum of 2 (2 Lines)

Jun 28th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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) ; }
Add Comment
Please, Sign In to add comment