From 77ad5a37f271c1420ca2f193ca3f4d91ebe67eab Mon Sep 17 00:00:00 2001 From: student Date: Fri, 3 Oct 2025 12:12:33 +0200 Subject: [PATCH] bolji opis herona --- lv2/marinlv2/1-raznostranican.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lv2/marinlv2/1-raznostranican.cpp b/lv2/marinlv2/1-raznostranican.cpp index 0107e9d..cd23c3f 100644 --- a/lv2/marinlv2/1-raznostranican.cpp +++ b/lv2/marinlv2/1-raznostranican.cpp @@ -1,8 +1,14 @@ -#include +#include //heron: https://en.wikipedia.org/wiki/Heron%27s_formula //glasi: a=sqrt(s(s-a)(s-b)(s-c)) //operatori: *,/,sqrt + +/* + +Heronova formula tvrdi da je površina A, trokuta čije su stranice a, b i c, jednaka: +a=sqrt(s(s-a)(s-b)(s-c)) +*/ int main() { double s1, s2, s3; std::cout << "unesi 3 stranice:";