fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a=100, b=6;
  6. double f;
  7. f=(double)a/ (double)b;
  8. printf("%2.2f",f);
  9. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
16.67