#23184: 兩種方法


20071124 (204-25范育綸)


第1種

#include <bits/stdc++.h>

  using namespace std;

   

  int main() {

  double v, r;

  while(cin>>v>>r)

{

cout<<fixed<<setprecision(4)<<v/r*1000<<endl;

  return 0;

  }

第2種

#include <bits/stdc++.h>

       using namespace std;

        

       int main() {

       double V, R;

       while (scanf("%lf %lf", &V, &R) == 2)

       printf("%.4lf\n", V * 1000 / R);

       return 0;

       }