Harmonic Mean C++ Program

#include<iostream>

          using namespace std;

int main(void)

{

float Harmonic_Mean;

float N, a1, a2, a3, a4, a5;

N=5;

a1=2; a2=14; a3-6; a4-82; a5=15;

Harmonic_Mean= N/(1/a1+1/a2+1/a3+1/a4+1/a5); cout<<"Harmonic Mean :"<<Harmonic_Mean;

}

SPYRO (Mr SAMYAK)

Ethical Hacker

Previous Post Next Post

Contact Form