<!-- hamlet
<!-- copytar
examples/                                                                                           0040755 0002611 0000666 00000000000 06355543373 0013543 5                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        examples/bad.c                                                                                      0100644 0002611 0000666 00000000572 06355543365 0014437 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program converts from degrees Fahrenheit to degrees Celsius. 

Created:  Joe Zachary, October 7, 1992
Modified:
*/

#include <stdio.h>

void main () {
  float sheba;
  float riffraff;
  printf("Please enter a Fanrenheit temperature: ");
  scanf("%f", &sheba);
  riffraff = (sheba - 32) * (5.0/9.0);
  printf("The Celsius equivalent is: %f\n", riffraff);
}
                                                                                                                                      examples/comments.c                                                                                 0100644 0002611 0000666 00000000501 06355543347 0015526 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program reads a floating point number and prints out its cube.

   Created:  Joe Zachary, October 7, 1992
   Modified:
*/

#include <stdio.h>

void main () {
  
  float x;
  printf("Please enter a floating point number: ");
  scanf("%f", &x);
  printf("The cube of that number is %f\n", x*x*x);

}

                                                                                                                                                                                               examples/formatted.c                                                                                0100644 0002611 0000666 00000000556 06355543356 0015700 0                                                                                                    ustar 00hamlet                          hamlet                          0000235 0000202                                                                                                                                                                        /* level 1 */
/* This program inputs a positive integer N and reports whether it
    even or odd.

Created:  Joe Zachary, October 7, 1992
Modified:
*/

#include <stdio.h>

void main () {
int N = 0;
while (N <= 0)
printf("Please enter a positive integer:\n");
scanf("%d", &N);
if ((N % 2) == 0)
printf("The number is even\n");
else;
printf("The number is odd\n");
}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  