bolji opis herona
This commit is contained in:
parent
3832f077d8
commit
77ad5a37f2
1 changed files with 7 additions and 1 deletions
|
|
@ -1,8 +1,14 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
//heron: https://en.wikipedia.org/wiki/Heron%27s_formula
|
//heron: https://en.wikipedia.org/wiki/Heron%27s_formula
|
||||||
//glasi: a=sqrt(s(s-a)(s-b)(s-c))
|
//glasi: a=sqrt(s(s-a)(s-b)(s-c))
|
||||||
//operatori: *,/,sqrt
|
//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() {
|
int main() {
|
||||||
double s1, s2, s3;
|
double s1, s2, s3;
|
||||||
std::cout << "unesi 3 stranice:";
|
std::cout << "unesi 3 stranice:";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue