Saturday, 14 January 2012
Program To Find Sum of Numbers Using Function In C++
#include<iostream.h>
#include<conio.h>
#include<math.h>
void sum(int x,int y);
main()
{
clrscr();
int a,b,c;
cout<<"Enter numbers=";
cin>>a>>b;
sum(a,b);
getch();
}
void sum(int x,int y)
{
int z;
z=x+y;
cout<<z;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment