Questions tagged [negative]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

PSet 2 - Why will it still pass negative numbers?

I am working on pset2 Caesar. I have everything done except for the fact that my program allows you to pass negative numbers as a key. Here is my code: #include <cs50.h> #include <ctype.h>...
0
votes
1answer
75 views

pset1 water how to ignore negative number

On the screenshot is the result after I typed a negative integer. How do I ignore the negative integers on bottles' result? Help pls. The positive & zero results are just fine, but the negatives ...
1
vote
1answer
51 views

pset2 Initials - negative index

I finished the Initials (more comfortable) problem, but when trying to detect initials, I'd like to avoid negative indeces. Here's what I used for the detection of initials, if it's not a space at ...