When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
29 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@languid geode
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
What are your current thoughts on the problem
What have you tried so far to complete the code, what have you thought about trying
I'm more so just stuck
Help me understand where you are stuck at
Last part where I added the comments "add code"
Well, that brings me back to my earlier question
What have you thought about for how to implement that "add code"
Or if you have no idea, try to break down the problem and identify what you do not know how to do
Okay
Well for the else if statements
one sec
{
if (a ) // Checks if 'a' is divisible by 2 without a remainder
{
cout << "yes";
}
else // If there's a remainder, 'a' is not evenly divisible by 2, hence it's odd
{
cout << "no";
}
the only part im really stuck at is if (a)
I've been brainstorming not sure what to put at that part
What has your class covered so far
at basic functions rn
Well so far loops, selections, and basic functions
{
if (num % 2 == 0) // Checks if 'num' is divisible by 2 without a remainder
{
cout << "yes";
}
else // If there's a remainder, 'a' is not evenly divisible by 2, hence it's odd
{
cout << "no";
}
@rocky sand this good?
this is good
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity