hi everyone. im new here.
this my code:
when i run the program i am unable to print anythin on the last 3 prinf's it just comes up as blank.Code:#include <math.h> double main() { double num1; double num2; printf ("enter number 1: \n"); scanf("%e" , &num1); printf("enter number 2 \n"); scanf("%e", &num2); double arithmetic_mean = (( num1 + num2)/2); printf ("Arithmetic Mean is : \n", arithmetic_mean);; double geometric_mean = sqrt (num1 * num2); printf ("Geometric Mean is : \n" , geometric_mean); double harmonic_mean = 2 / ( 1 / num1)+ (1 / num2); printf (" Harmonic Mean is : \n", harmonic_mean); return (0); }
how can i correct this?



LinkBack URL
About LinkBacks



