Advertisement
askarulytarlan

Задача A. Максимум из двух чисел

Oct 8th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <math.h>
  5.  
  6.  
  7. using namespace std;
  8.  
  9. double a, b;
  10.  
  11. int main(int argc, const char * argv[]) {
  12.  
  13. cin >> a >> b;
  14. if (a > b) {
  15. cout << a;
  16. }
  17. if (a == b){
  18. cout << a;
  19. }
  20. if (b > a) {
  21. cout << b;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement