D-Gj

Pomal

Apr 5th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void pechatiPomal(double a, double b)
  6. {
  7.     if (a == b)
  8.         cout << "Ednakvi!" << endl;
  9.     else if (a < b)
  10.         cout << a << endl;
  11.     else
  12.         cout << b << endl;
  13. }
  14.  
  15. int main()
  16. {
  17.     double m, n;
  18.     cin >> m >> n;
  19.     pechatiPomal(m, n);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment