fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. int a;
  9. int b;
  10. int c;
  11. int x;
  12. int y;
  13.  
  14. cin >> a;
  15. cin >> b;
  16. cin >> c;
  17. while (x>=1 && x<=10){
  18. y=a*pow(x,2)+b*x+c;
  19. cout << "x= "<< x << ", y= " << y << endl;
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 16064KB
stdin
1
2
3
stdout
Standard output is empty