From 4a91d3772c13e5e16ad936afb0cde0f87c6dc55a Mon Sep 17 00:00:00 2001 From: IslamAbdelsalam <56545362+IslamAbdelsalam@users.noreply.github.com> Date: Sun, 19 Feb 2023 20:31:40 +0200 Subject: [PATCH] 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))); " --- tests/get_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/get_int.c b/tests/get_int.c index 80eab12..2824bca 100644 --- a/tests/get_int.c +++ b/tests/get_int.c @@ -3,7 +3,7 @@ int main(void) { - int i = get_int(); + int i = get_int("Enter a number:\n"); printf("%i\n", i); int j = get_int("Foo: "); printf("%i\n", j);