write a program in c++ to find average of two numbers using function
Answers
Answered by
0
#include <iostream>
using namespace std;
int average()
{
cout << "first number : ";
cin >> fn;
cout << "Second num : ";
cin >> sn;
average = (fn+sn)/2;
return(average);
}
int main()
{
average();
return 0 ;
}
Similar questions