#include<stdio.h>
#include<conio.h>
int sum();
void main()
{
int c;
c = sum();
printf("\nSum = %d", c);
getch();
}
int sum()
{
int a, b;
clrscr();
printf("\nEnter number1: ");
scanf("%d", &a);
printf("\nEnter number2: ");
scanf("%d", &b);
return a+b;
}
No comments:
Post a Comment