Function Program9

#include<stdio.h>

#include<conio.h>


int sum(int, int);


void main()

{

int a, b, c;

clrscr();


printf("\nEnter number1: ");

scanf("%d", &a);


printf("\nEnter number2: ");

scanf("%d", &b);


c = sum(a, b);

printf("\nSum = %d", c);


getch();

}


int sum(int a, int b)

{

return a+b;

}

No comments:

Post a Comment