#include<stdio.h>
#include<conio.h>
#include<iostream.h>
int sum(int a,int b);
int sub(int a,int b);
int main()
{
clrscr();
cout<<sum(6,3)<<endl;
cout<<sub(6,3)<<endl;
int s=sum(9,5);
cout<<s<<endl;
getch();
return 0;
}
int sum(int a,int b)
{
cout<<"Sum="<<a+b<<endl;
return a+b,a*b;
}
int sub(int a,int b)
{
return a-b;
}
No comments:
Post a Comment