Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- #include "func.h"
- int main() {
- long long x1, x2, x3, y1, y2, y3;
- std::cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
- std::cout << "Square area: " << Area(x1, y1, x2, y2) << '\n';
- std::cout << std::fixed << std::setprecision(6) << "Triangle area: " << Area(x1, y1, x2, y2, x3, y3) << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement