URI 1174 Array Selection I
A solution in c++
#include <bits/stdc++.h>
using namespace std;
int main(){
int i,n, sum = 0, x, y;
double arr[100];
for(i = 0 ; i<100; i++)
scanf("%lf",&arr[i]);
for(i = 0; i<100; i++){
if(arr[i] < 11)
printf("A[%d] = %.1lf\n",i,arr[i]);
}
}
0 Comments
If you have any doubts, Please let me know