DMP - Chapter 3


Data and C


Find the errors:

include 
main
(


	float g; h;
	float tax, rate;

	g = e21;
	tax = rate * g;
)


Find the errors:

void main(int) / this program is perfect / { cows, legs integer; printf("How many cow legs did you count\n); scanf("%c", legs); cows = legs / 4; printf("That imples there are %f cows.\n", cows); }

Assignment #2: due Sep. 24, 1996

p. 78: #2, 3, 4, 5, 6


Go to the Ich's Home Page


Go to the Peabody Home Page


For comments or questions email to: ich@peabody.jhu.edu