From 184f60c4030b79ce614f28331be87c1f7958f911 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 17 Mar 2022 14:17:22 +0100 Subject: [PATCH] SAD --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 4418d70..356d699 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,7 +6,7 @@ int main(){ int result; int vxod[99]; for(int i = 0; i < 10; i++){ - c = getchar(); + scanf("%d" *c); if(c != 1) break; vxod[i] = c;