Puzzle E21

Math to C

Complete the following program so that it evaluates this formula:

x squared plus y squared over a minus b
#include <stdio.h>

/* Puzzle E21 -- math to C, Again*/
 
int main()
{
  double x = 12.3, y = 7.2, c = 3.2;
  double result;
  
  result =   ;  /* Complete this statement */
  
  printf("result: %f\n", result ); 
  return 0;
}


Previous Page        Answer         Next Page         Home