fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float y,x;
  6.  
  7. for (x=1.0;x<=1.5;x=x+0.1)
  8. {
  9. y=x*x*x+0.1;
  10. printf("y=%4.1f при x= %.1f \n", y, x);
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
y= 1.1 при x= 1.0 
y= 1.4 при x= 1.1 
y= 1.8 при x= 1.2 
y= 2.3 при x= 1.3 
y= 2.8 при x= 1.4