Monday, 8 October 2012

FUNCTION WITH ARGUMENTS


#include<iostream.h>
int sum(int a, int b){
int c = a + b;
return c;
}

void main()
{
 
cout<<"the sum of the two numbers is " << sum(3,3)<<endl;

}

OUTPUT WILL BE


No comments:

Post a Comment