puts() whitespace style change

This commit is contained in:
Wayne Parham
2021-06-16 16:47:38 -05:00
parent bed61df837
commit 82bdc77e41
5 changed files with 46 additions and 46 deletions

View File

@@ -30,22 +30,22 @@ int main (void) {
buffer[i] = c;
i++;
if( i == 40 ) {
puts( "\n\n--- Reached 40 character limit. ---" );
puts ("\n\n--- Reached 40 character limit. ---");
}
}
i--; // index is one past end
while( z == 0 ) {
puts( "\n\nHow many times (0 for forever) to repeat?" );
puts ("\n\nHow many times (0 for forever) to repeat?");
c = getchar();
if( (c >= '0') && (c <= '9') ) { // between 1 and 9 loops allowed
z = 1; // a number was pressed
t = c - '0'; // convert char to int
puts( "\n\nLook at the front panel.\n" );
puts ("\n\nLook at the front panel.\n");
}
else {
puts( "\nWhat?" );
puts ("\nWhat?");
z = 0; // keep asking for a number
}
}
@@ -352,7 +352,7 @@ int main (void) {
}
}
puts( "\n\nEnjoy your day!\n\n" );
puts ("\n\nEnjoy your day!\n\n");
return 0;
}