Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #107.80K
Ranked #4K
~214 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for ben25x

Your if statements are both using the assignment operator "=" instead of the equality operator "==". The first one will always set k to 'r' and then print it.

Member Avatar for Nick Evan
0
214

The End.