Maplewing

9/1 C++: cin & cout

Aug 31st, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4.  
  5. int main(){
  6.     double a, b;
  7.    
  8.     cin >> a >> b;
  9.     // scanf("%lf%lf", &a, &b);
  10.    
  11.     cout << a * b / 2 << endl;
  12.     // printf("%g", a * b / 2);
  13.    
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment