Created
September 10, 2016 19:09
-
-
Save amirul12/f8e719a1aecd4ad343819834c5b82783 to your computer and use it in GitHub Desktop.
ত্রিভুজের তিনটি বাহুর দৈর্ঘ্য যথাক্রমে a, b, c দেওয়া আছে , ত্রিভুজের ক্ষেত্রফল নির্ণয় প্রোগ্রাম লিখ।
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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