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 41005
0 votes
2 answers
175 views

CS50 Week 1 Cash Problem question

include <cs50.h> #include <stdio.h> int calculate_quarters(int cents); int calculate_dimes(int cents); int calculate_nickels(int nickels); int calculate_pennies(int pennies); int add(int a, int b, int c, … int d) { return a + b + c + d; } …
AmyG's user avatar
  • 41
1 vote
1 answer
57 views

PSET 2 Caesar : help debugging caesar : continued #2

alphabet, uppercase, A = 65, lowercase, a = 97 rotated_char = ((c - 65) + n) % 26; // return the result c = rotated_char + 65; } else if (islower(c)) { rotated_char … = ((c - 97) + n) % 26; c = rotated_char + 97; } else { rotated_char = c; } return rotated_char; } …
AmyG's user avatar
  • 41
1 vote
1 answer
55 views

PSET 2 Caesar : help part 3 : ciphertext rotating correctly but not printing out

; // return the result c = rotated_char + 'A'; } else if (islower(c)) { rotated_char = ((c - 'a') + n) % 26; c = rotated_char + 'a'; } else { … rotated_char = c; } return rotated_char; } …
AmyG's user avatar
  • 41