Instructions Given an int variable k that has already been declared, write some code that uses a for loop to print a single line consisting of 97 asterisks. Use no variables other than k. Additional...


c++ homework, and the suggestion is given in the second picture. Please tell me how to change my work as suggestion suggested.


Instructions<br>Given an int variable k that has already been declared, write some code that uses a for loop to print a single line consisting of<br>97 asterisks. Use no variables other than k.<br>Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces,<br>newlines) exactly.<br>* Submit<br>History:<br>X (21 of 21) 03/09/22 01:26:46<br>for (k=0; k<=97; k++)<br>cout<<k<<br>1<br>2<br>

Extracted text: Instructions Given an int variable k that has already been declared, write some code that uses a for loop to print a single line consisting of 97 asterisks. Use no variables other than k. Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. * Submit History: X (21 of 21) 03/09/22 01:26:46 for (k=0; k<=97; k++)=""><>< 1="" 2=""><>
• stdout is not correct<br>• Consider replacing<br><= with <<br>• Consider removing: <<<br>• Consider removing: k<br>• Is there a statement that needs to be terminated by a semicolon ( ; )?<br>• You may be missing a: cout<br>see test-case table below<br>Your Submission<br>for (k=0; k<=97; k++)<br>na<<endl;<br>cout<<k<<

Extracted text: • stdout is not correct • Consider replacing <= with="">< •="" consider="" removing:="">< •="" consider="" removing:="" k="" •="" is="" there="" a="" statement="" that="" needs="" to="" be="" terminated="" by="" a="" semicolon="" (="" ;="" )?="" •="" you="" may="" be="" missing="" a:="" cout="" see="" test-case="" table="" below="" your="" submission="" for="" (k="0;"><=97; k++)=""><><>

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here