Skip to content

Commit 4a91d37

Browse files
Fix get_int Bug on this test
in line 6: get_int must print a text as it's on cs50.h " int get_int(const char *format, ...) __attribute__((format(printf, 1, 2))); "
1 parent 97bca13 commit 4a91d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/get_int.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
int main(void)
55
{
6-
int i = get_int();
6+
int i = get_int("Enter a number:\n");
77
printf("%i\n", i);
88
int j = get_int("Foo: ");
99
printf("%i\n", j);

0 commit comments

Comments
 (0)