Comp Sci Master For Loops and If Statements with C++ Homework Help | GetCode.me

  • Thread starter Thread starter Biosyn
  • Start date Start date
  • Tags Tags
    C++ Loop
AI Thread Summary
The discussion focuses on a C++ homework problem involving for loops and if statements, specifically addressing an extra credit task from a video. A user shared their code attempt but was informed that it does not reproduce the required pattern, indicating it is incorrect. Emphasis is placed on the importance of proper code formatting, including indentation and line spacing, for readability. Participants are encouraged to post their code using appropriate tags for better assistance. The conversation highlights the need for precise coding to meet assignment requirements.
Biosyn
Messages
114
Reaction score
0

Homework Statement

Hello, the problem is in this video. It is displayed near the end starting from 6:19 onward. It's titled "Extra Credit"


Homework Equations



For Loops
and If Statements?

The Attempt at a Solution



Here is my attempt at the problem:

http://www.getcode.me/3sr0mzy7rz1cgrfu
 
Last edited by a moderator:
Physics news on Phys.org
Your program doesn't reproduce the pattern, so it is wrong. I guess that's not kind of the answer you were expecting, but there is really not much more that can be said.

You can post your code here using [noparse]
Code:
[/noparse] tags. Please pay attention to formatting - correct indentation and line spacing are crucial for code readability.
 

Similar threads

Replies
2
Views
2K
Replies
3
Views
1K
Replies
17
Views
3K
Replies
6
Views
4K
Replies
2
Views
1K
Replies
1
Views
2K
Replies
13
Views
3K
Replies
4
Views
3K
Back
Top