. write a C program to accept two numbers and print arithmetic and harmonic mean of the two number ( AM=(a+b) 2,HM= ab(a+b)
Answers
Answered by
0
Explanation:
grvxtvbhzzujebwvevevhdjebvevev
Answered by
9
Answer:
#include <stdio.h>
int main()
{
int a,b;
float arithmetic_mean,harmonic_mean;
printf("enter two no. A and B :-");
scanf("%d%d",&a,&b);
arithmetic_mean = (a+b) /2;
harmonic_mean = (a*b) / (a+b);
printf("arithmetic mean = %f and harmonic mean = %f",arithmetic_mean,harmonic_mean);
}
Output:
enter two no. A and B :- 6 3
arithmetic mean = 4.000000 and harmonic mean = 2.000000
Explanation:
mark as brainliest answer plzz help
Similar questions