bolji opis herona

This commit is contained in:
student 2025-10-03 12:12:33 +02:00
parent 3832f077d8
commit 77ad5a37f2

View file

@ -1,8 +1,14 @@
#include <iostream>
#include <iostream>
//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:";