Search This Blog

Sunday, 23 August 2020

function with argument type int

 #include<iostream>

using namespace std;

int got(int ,int );

int main()

{

int a,b;

cout<<"enter the two nmbers:n";

cin>>a>>b;

got(a,b);

return 0;

}

int got(int x,int y)

{

int z =x+y;

cout<<"addition is :"<<z;

}


No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts