Computer Science, asked by podipbachhar, 2 months ago

please answer my question...it's urgent..​

Attachments:

Answers

Answered by Anonymous
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