Question
Fill in the blanks for the code. Code is in c++. and plz explain and walk thru why you choose that answer Repetition Blocks //define
Fill in the blanks for the code. Code is in c++. and plz explain and walk thru why you choose that answer
Repetition Blocks //define constants #define TRUE ____________ #define FALSE ____________ #define LIMIT ____________ void main() { //declare variables int _____________; //variable to be tested int _____________; //loop counter //basic while structure ... tests before starting loop _____________ = FALSE; //initialize test variable while(____________ _____ ____________) //do the pre-test { instruction(s) whileTrue; _____________ = _________________; //modify test variable } //******************************************************************** //basic do-while structure ... tests after it has been through the loop _____________ = FALSE; //initialize test variable do { instruction(s) whileTrue2; _____________ = _________________; //modify test variable } while (__________________________); //do the post-test //******************************************************************** //basic for loop (initialize; while test; modify) for(_____ _____ ____; _______ _____ ___________; _____________) { instruction(s) whileTrue3; } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started