Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
typedef struct points2D{ double x; double y; }pts; double tri_area(pts p1,pts p2,pts p3) { double A; //Calculating the area of triangles A=0.5*((p1.x*p2.y)+(p2.x*p3.y)+(p3.x*p1.y)-(p1.y*p2.x)-(p2.y*p3.x)-(p3.y*p1.x)); return A; } int main() { int N,i,flag=0; scanf("%d",&N); pts p[N],p1,p2,p3; double arr[N]; for(i=0;i
=0) { flag=1; break; } } } //Set the condition to find out whether all the area of the triangles are +ve else { for(i=1;i
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)