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; + }