Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 2211

The problem set for Week 1 introduces the C programming language.

0 votes
3 answers
1k views

Problem printing #'s in mario pyramid

I am having a hard time printing the #'s to build the mario pyramid. My input works great; my program uses a for loop to print the the appropriate number of rows. Nested in this loop is another for lo …
Joseph Youren's user avatar
0 votes
1 answer
324 views

I can't figure out what problem is causing check50 to reject my "hello, world" code

Can't for the life of me find the problem that results in: jharvard@appliance (~/Dropbox/pset1): check50 2014/x/pset1/hello hello.c :) hello.c exists :) hello.c compiles :( prints "hello, world\n" …
Joseph Youren's user avatar
5 votes
2 answers
20k views

Problem with "expression result unused" error in for-loop

There is obviously something missing in my understanding of the for-loop. Part of my code looks like this: int height; do { printf("Height?: "); height = GetInt(); } while (height < 0 || hei …
Joseph Youren's user avatar