Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 7th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. int main ()
  2. {
  3.         double fxy;
  4.         int x, y ;
  5.         cout << "Iveskite x ir y reiksmes:" << endl;
  6.         cout << "x = " ; cin >> x; cout << endl;
  7.         cout << "y = " ; cin >> y; cout << endl;
  8.         if (x * x * x - y == 0)
  9.                 cout << "Su siomis x ir y reiksmemis f-ja neturi sprendiniu." << endl;
  10.         else {
  11.                 fxy = (y*y - 2*y*x + x*x) / (x*x*x - y);
  12.                 cout << "F(x,y) = " << fxy << endl;
  13.         }
  14.         return 0;
  15. }