From 30ccb3261e9cf854319b85a83d9f844e2d785cec Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Fri, 13 Mar 2020 17:36:17 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Ea1/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a1/program.c | 58 ++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/a1/program.c b/a1/program.c index 057e65e..20ae013 100644 --- a/a1/program.c +++ b/a1/program.c @@ -1,30 +1,30 @@ -#include -#include -#include -int main() -{ - float x=0; - float value =0; - int count =0; - float arr[50]; - while(scanf("%f",&value)!=EOF){ - if(isalpha(value)!=0){ - return 0; - } - if(count !=0){ - arr[count-1]=value; - } - else{ - x=value; - } - count++; - } - value=0; - for(int i =0;i +#include +#include +int main() +{ + float x=0; + float value =0; + int count =0; + float arr[50]; + while(scanf("%f",&value)!=EOF){ + if(isalpha(value)!=0){ + return 0; + } + if(count !=0){ + arr[count-1]=value; + } + else{ + x=value; + } + count++; + } + value=0; + for(int i =0;i