Advertisement
nisvet_m

Untitled

Dec 1st, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.  
  7. int y = 0, a = 0, b = 0, c = 0, x = 0;
  8.  
  9. cout << "Unesite redom varijable x, a, b , c: ";
  10. cin >> x >> a >> b >> c;
  11.  
  12. y = a * x * x + b * x + c;
  13. cout << "Y = " << y << endl;
  14. system("pause>0");
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement