CIS 1500 Lecture Notes - Lecture 7: Boolean Data Type, C Data Types, Semicolon
Document Summary
If this happens while you"re testing your code, use ctrl + c (^c) to kill the process: note: in a terminal ctrl + c kills processes; this is called a control sequence. It will not copy text from the terminal. To copy text from a terminal window press ctrl + Dr. judi mccuiag: the loop body is always executed at least once, and is repeatedly executed as long as the expression is true do { Users will try their best to find a way to break your program with bad input :( Good idea: have a boolean variable set to true or false that flags if the input is good or bad; use a while loop with conditions to check the input, and set the boolean flag appropriately. Tell the user what they did wrong, if anything. Note: to use boolean variables, include stdbool: #include * first expression: i = 0; initialize counter.