[ create a new paste ] login | about

Link: http://codepad.org/p2APkohv    [ raw code | output | fork ]

ArtemGr - C++, pasted on Jun 13:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;

int main () {
  double x = 1.37 + 1.26 + 1.32; double y = 2.18;
  cout << x << " * " << y << " = " << (x * y) << endl;
  double h = 2.94;
  cout << x << " * " << y << " * " << h << " = " << (x * y * h) << endl;

  return 0;
}


Output:
1
2
3.95 * 2.18 = 8.611
3.95 * 2.18 * 2.94 = 25.3163


Create a new paste based on this one


Comments: