The quest is : Find area of a tri. I got the ans which is 30. But if i give 'area of triangle' and run, the output comes wrong. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

The quest is : Find area of a tri. I got the ans which is 30. But if i give 'area of triangle' and run, the output comes wrong.

https://code.sololearn.com/czeT2u0W3228/?ref=app

24th Sep 2018, 12:00 PM
Rayeed_leo
Rayeed_leo - avatar
4 Answers
+ 2
You used int which is unable to store doubles.
24th Sep 2018, 12:16 PM
Cyrus
Cyrus - avatar
+ 2
the ans should be, output : Area of triangle 6
24th Sep 2018, 2:49 PM
Rayeed_leo
Rayeed_leo - avatar
+ 2
Thnks for all ur help, got the ans
24th Sep 2018, 2:58 PM
Rayeed_leo
Rayeed_leo - avatar
0
What should your awnser be?
24th Sep 2018, 12:07 PM
CodeMStr
CodeMStr - avatar