text: /*********************************************************
   * From C PROGRAMMING: A MODERN APPROACH, Second Edition *
   * By K. N. King                                         *
   * Copyright (c) 2008, 1996 W. W. Norton & Company, Inc. *
   * All rights reserved.                                  *
   * This program may be freely distributed for class use, *
   * provided that this copyright notice is retained.      *
   *********************************************************/
  
  /* celsius.c (Chapter 2, page 24) */
  /* Converts a Fahrenheit temperature to Celsius */
  
  #include <stdio.h>
  
  #define FREEZING_PT 32.0
  #define SCALE_FACTOR (5.0/9.0)
  
  /***
  Modified: 12 September 2017
  Dr Boutros changed float into double
  ***/
  
  int main()
  {
   double fahrenheit, celsius;
  
   printf("Enter Fahrenheit temperature: ");
   scanf("%lf", &fahrenheit);
  
   celsius = (fahrenheit - FREEZING_PT) * SCALE_FACTOR;
   printf("Celsius equivalent: %.1f\n", celsius);
  
   return(0);
  }/* end of main () */