Thursday, February 27, 2014

Addtion using function

#include<stdio.h>
#include<conio.h>
int sum();
void main()
{
int total;
total=sum();
printf("%d",total);
   getch();
}
sum()
{
int a, b;
printf("Enter two Number");
scanf("%d%d", &a, &b);
return a+b;
}

No comments:

Post a Comment