09.30.05 CISC105 Lecture Notes (1) Float "lottery" program Moral of the story: (a) don't use float, use double (b) avoid float or double for money, use int instead. (2) Review calendar (2.5) for loops We looked at forLoopDemo.c to see a few for loops that printed lines of stars, or lines of blanks. (3) void functions with no arguments We saw that a variable is declared inside a "block". A "block" is a section of code that starts with a { and ends with a }. A variable declared inside a block is only known inside that block. void printLineOfStars(void) { } (3) void functions with no one int argument void printLineOfNStars(int n ) { } (4) void functions with no one int argument and one char argument void printLineOfNChars (int n , char c ) { }