fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5. double RSSI, N, Measured_power, hasil, distance;
  6. Measured_power = -69;
  7. N = 2.0;
  8. scanf("%lf", &RSSI);
  9. hasil = (Measured_power - RSSI) / (10 * N);
  10. distance = pow(10.0, hasil);
  11. printf("%lf", distance);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9424KB
stdin
-70
stdout
1.122018