fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4. int a,b;
  5. cin>>a>>b;
  6. int d = a/b;
  7. int r = a/b;
  8. double f = double(a)/double(b);
  9. cout<<d<<" "<<r<<" "<<fixed<<setprecision(5)<<f<<" "<<endl;
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5308KB
stdin
3 2
stdout
1 1 1.50000