Advertisement
Marcos510

Untitled

Jan 27th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.    
  2.     ifstream quadratic("quadratic.txt");
  3.     float coefficient_a, coefficient_b, coefficient_c;
  4.  
  5.     while(quadratic >> coefficient_a >> coefficient_b >> coefficient_c);
  6.     {
  7.         cout << coefficient_a << " " << coefficient_b << " " << coefficient_c << endl;
  8.     }
  9.  
  10. //1 1 1
  11. //1.2 -2.3 0.4
  12. //-2 -3 -4
  13. //+0 -2 8.85
  14. //2.345
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement