fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. double x = 0.0;
  6.  
  7. while (x <= 1.0) {
  8. x += 0.1; // tutaj zmiana x (może być dowolny wzór)
  9. }
  10.  
  11. std::cout << std::fixed << std::setprecision(10) << x << std::endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
1.1000000000