All Questions
6 questions
0
votes
2
answers
109
views
Problems on mario (pset1)
I want to test how the do-while loop works. But I encounter a problem, which I've spent an hour working on but couldn't figure out a solution. Here's my code.
int main(void)
{
int n;
do
{
...
0
votes
1
answer
2k
views
Mario Less Comfortable, do-while loop problem
Hi everyone I made sure to do my research and go through the already posted questions. I am certain my while condition is wrong after research but don't understand the correction.
my program runs but ...
0
votes
1
answer
56
views
PSET1 mario.c why if and return
I was banging my head with this. I had to look at others solutions to get my code to work. Here is the code I have, it works now but only because I looked at solution.
I had this code written minus ...
0
votes
1
answer
147
views
Codestyling and whitespaces are important in Python? PSET6 [duplicate]
codestyling and whitespaces are important in Python?
I have this simple code and works...
import cs50
while True:
print ("Type a number between 0 and 23: ", end="")
n = cs50.get_int()
...
0
votes
3
answers
194
views
PSET 1 Mario Code Problem
Would someone be as kind as to tell me what I got wrong for this section of my code? Thanks so much in advance!
0
votes
2
answers
940
views
pset1 "expected identifier error in do-while loop
I have been struggling with this for weeks now, have done several searches and posts and can not seem to get around this. I have tried everything and it just makes it worse. I wish there was a video ...