Computer Science, asked by kaveriruchitha, 3 months ago

What is the output of the following program?
#include <iostream>
using namespace std;
int operate (int a, int b)
{
return (a*b);
1
float operate (float a, float b)
{
return (a/b):
}
int main()
{
int x = 5, y = 2;
float n = 5.0, m = 2.0;
cout << operate(x, y) <<"\t":
cout << operate in, m);
return 0;​

Answers

Answered by pakalaariareddy
0

Answer:

.

#include

2.

using namespace std;

3.

int operate (int a, int b)

4.

{

5.

return (a * b);

6.

}

7.

float operate (float a, float b)

8.

{

9.

return (a / b);

10.

}

11.

int main ()

12.

{

13.

int x = 5, y = 2;

14.

float n = 5.0, m = 2.0;

15.

cout << operate (x, y);

16.

cout << operate (n, m);

17.

return 0;

18.

}

Similar questions