All pastes #977717 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-09 00:54 UTC
rendered paste body
#include <stdio.h>

main()
{
	float a;
	float b;

	printf ("The following system is used to determine if one number is bigger, smaller, or equal to another.  You will input two variables (numbers), then the program will compare the two.  To begin, enter a whole number, then press enter: ");
	scanf ("%f", &a);
	printf ("\nYour first integer is %f.  Now enter the second whole number press enter: ", a);
	scanf ("%f", &b);
	printf ("\nYour second integer is %f.  Thinking...\n", b);

	if (a < b)
		printf ("\nAha!  I have found that %f is smaller than %f.  Glad I could help!\n", a, b);
	else if (a > b)
		printf ("\nAha!  I have found that %f is larger than %f.  Glad I could help!\n", a, b);
	else
		printf ("\nAha!  I have found that %f is equal to %f.  Glad I could help!\n", a, b);
}