please answer my question...it's urgent..
Attachments:
![](https://hi-static.z-dn.net/files/d22/3942c6af904c3246c3b856549de2b1f9.jpg)
Answers
Answered by
1
Python
b= 20
h=30
area = (b*h)/2
print("Area of Triangle is :");
print(area);
Output:
Area of Triangle is: 300.0
•••••••••••••••••••••••••••••••
C
#include<stdio.h>
int main()
{ float b ,h, area;
b= 20;
h= 30;
area = (b*h) / 2 ;
printf("\n\n Area of Triangle is: %f",area);
return (0);
}
• Output is same as python.
•••••••••••••••••••••••••••••••
JAVA
public class test
{
public static void main (String args[])
{ float b=20,h =30,area ;
area = ( b*h) / 2 ;
System.out.println("Area of Triangle is: "+area);
}}
Similar questions
Math,
3 months ago
English,
3 months ago
Social Sciences,
3 months ago
Hindi,
6 months ago
Math,
6 months ago
Political Science,
1 year ago
English,
1 year ago
History,
1 year ago