From c3e0c8c22996b92c75ac80f9cf504594f12f90f0 Mon Sep 17 00:00:00 2001 From: Peter Petrek Date: Thu, 21 Oct 2021 22:38:45 +0200 Subject: [PATCH] /0v2 --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 31c15b9..bf9f403 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -34,7 +34,7 @@ int main() { printf("%.2f \n",databaza[counter-2].price); } if(input[0] == '/'){ - if(databaza[counter-1].price == '0'){ + if(databaza[counter-1].price == 0){ printf("division by zero"); return 0; }