fixed signed.c

This commit is contained in:
Rushil Umaretiya 2024-02-21 15:02:06 -05:00
parent 5de9838a15
commit 5602dbfb3f
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

View File

@ -19,7 +19,7 @@ int main(int argc, char* argv[]) {
printf("0");
}
for (int i = 15; i > 0; i--) {
for (int i = 14; i >= 0; i--) {
if (num >= (1 << i)) {
printf("1");
num -= (1 << i);