From 41747a84f390030bd98d931e7abf0993abcf3b01 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 18 Mar 2022 11:58:03 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'du3/=20program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/ program.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 du3/ program.c diff --git a/du3/ program.c b/du3/ program.c new file mode 100644 index 0000000..da5a00e --- /dev/null +++ b/du3/ program.c @@ -0,0 +1,55 @@ +#include +#include +#include +#include +#define SIZE 30 +int main(){ + char pol[SIZE]; + memset(pol,'\0',SIZE); + //pol[SIZE]='\0'; + int ch=0; + + for(int idx=0;1;idx++ ){ + ch=getchar(); + if(ch==EOF||ch==' ')break; + pol[idx]=ch; + } + + /*for(int i=0; i