fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. float f=26.0;
  7. for (;f<=27.0;f+=0.2) {
  8. cout<<f<<" "<< (f<27.0)<<"\n";
  9. }
  10. for (double i=26.0;i<=27.0;i+=0.2) {
  11. cout<<i<<" "<< (i<27.0)<<"\n";
  12. }
  13. f=26.0;
  14. cout<<((27.0-f)/0.2);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
26 1
26.2 1
26.4 1
26.6 1
26.8 1
26 1
26.2 1
26.4 1
26.6 1
26.8 1
27 1
5