diff --git a/du3/program.c b/du3/program.c new file mode 100644 index 0000000..057e65e --- /dev/null +++ b/du3/program.c @@ -0,0 +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