Write a function name five which has no arguments no input a

Write a function name five, which has no arguments (no input), always return the integer 5.

Language is c++

Solution

Solution.cpp

#include <iostream>//header file for input output function
using namespace std;//it tells the compiler to link stdnamespace
int five();//function declaratin
int main()
{//main function
     five();//calling function
return 0;
}
int five()
{//function definition
    cout<<\"5\"<<endl;
    return 5;
}


output

5

Write a function name five, which has no arguments (no input), always return the integer 5. Language is c++SolutionSolution.cpp #include <iostream>//heade

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site