Untitled

mail@pastecode.io avatar
unknown
c_cpp
19 days ago
256 B
0
Indexable
Never
#include <iostream>
using namespace std;
double avr(double a, double b) 
{
    return (a + b) / 2;
}
int main() 
{
    double num, num1;
    cin >> num >> num1;;
    double average = avr(num, num1);
    cout << average << endl;
    return 0;
}
Leave a Comment