/*
compare.c

Prompts a use for two numbers, compares them, and reports
whether the first is less than, greater than, or equal
to the second.
*/

#include <stdio.h>

main()
{
  float a , b ;

  printf( "Enter a number.\n" ) ;
  scanf( "%f" , &a ) ;
  printf( "Enter another number.\n" ) ;
  scanf( "%f" , &b ) ;

  if ( a < b )
    printf( "%f is less than %f.\n" , a , b ) ;
  else if ( a > b )
    printf( "%f is greater than %f.\n" , a , b ) ;
  else
  {
    printf( "Congratulations!\n" ) ;
    printf( "%f is equal to %f.\n" , a , b ) ;
  }
}
