Skip to content

Instantly share code, notes, and snippets.

@amirul12
Created September 10, 2016 19:09
Show Gist options
  • Save amirul12/f8e719a1aecd4ad343819834c5b82783 to your computer and use it in GitHub Desktop.
Save amirul12/f8e719a1aecd4ad343819834c5b82783 to your computer and use it in GitHub Desktop.
ত্রিভুজের তিনটি বাহুর দৈর্ঘ্য যথাক্রমে a, b, c দেওয়া আছে , ত্রিভুজের ক্ষেত্রফল নির্ণয় প্রোগ্রাম লিখ।
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int a, b, c;
float s, area;
printf("Enter 3 integer values :");
scanf("%d %d %d", &a,&b,&c);
s = (a + b + c)/2;
area = sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of triangle is = %f", area);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment