All Questions
Tagged with mario.more mario
6 questions
0
votes
1
answer
56
views
Query related to Mario program(more) in CS50 pset1
I can't figure out the problem in my code, it successfully creates a pyramid but doesn't reprompt when value other than 1-8 is entered, also it gives a space before printing the pyramid, causing ...
0
votes
2
answers
88
views
When printing mario problem the second triangle appears below the first one
#include <stdio.h>
#include <cs50.h>
int main(void)
{
//This do while loop checks if user entered number 1-8
int x;
do
{
x = get_int("Height: ");
}
while ...
1
vote
2
answers
115
views
I don't know why check50 HATES ME?! mario.more
Here's my code for mario.more.
[removed solution code]
When i execute this code, it performs exactly how it should look according to Walkthrough:
But when I run check50, the terminal goes like ...
2
votes
2
answers
2k
views
PSET1:: Mario More Comfortable :: confused about check50 output
I am sorry if I miss something obvious here, but I am an absolute beginner. I get the following output from check50, which I am confused about:
I will attach my code below, but my output for 2 is:
...
3
votes
2
answers
184
views
Which loop can be replaced for nested for loops for PSET 1 (Mario More Comfortable)?
According to the cs50 style guide for C, more than 3 variables for iteration is not a good practice. I have done Pset 1 (Mario more comfortable) with 5 for loops, so it has 5 iterations variables. Is ...
0
votes
1
answer
68
views
pset6 problem with mario.more.py, even my output is correct but check50 is still showing error
This is my code in python
import cs50
while True:
print("height: ", end="")
height= cs50.get_int();
if height>=0 and height<=23:
break
for i in range(1,height+1):
...