From c1c368ae8e5cdc63e8c7552ac2c58ade261672fd Mon Sep 17 00:00:00 2001 From: repitile Date: Fri, 18 Nov 2016 22:46:36 +0200 Subject: [PATCH] Create 04_domashno4.4.c --- G/04/22/04_domashno4.4.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 G/04/22/04_domashno4.4.c diff --git a/G/04/22/04_domashno4.4.c b/G/04/22/04_domashno4.4.c new file mode 100644 index 000000000..d07bdab3f --- /dev/null +++ b/G/04/22/04_domashno4.4.c @@ -0,0 +1,27 @@ +#include + int main() + { + int s=1,j,z=0; + float mas[64],t,sum=0; + for(j=0;scanf("%f", &t)!=EOF;){ + for(int i=0;i=0) + mas[i]=mas[i]-z; + else + break;} + sum=mas[i]+sum; + } + printf("%.3f", sum); + return 0; + }