Computer Science, asked by shvmjindal56, 22 days ago

write a program in c++ to find average of two numbers using function​

Answers

Answered by akashrbllps
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