b= 5
h=12
area = (b*h)/2
print("Area of Triangle is :");
print(area);
Output:
Area of Triangle is: 30.0
C
#include<stdio.h>
int main()
{ float b ,h, area;
b= 5;
h= 13;
area = (b*h) / 2 ;
printf("\n\n Area of Triangle is: %f",area);
return (0);
}
Output:
Area of Triangle is: 32.50000
JAVA
public class test
{
public static void main (String args[])
{ float b=4,h =13,area ;
area = ( b*h) / 2 ;
System.out.println("Area of Triangle is: "+area);
}}
Output:
Area of Triangle is: 26.0
C#
using System;
class main
{ static void Main()
{
float b = 5 ,h =23 ;
double area = (b*h) / 2 ;
Console.WriteLine("Area of Triangle is :"+area);
}}
Python
Output:
C
Output:
JAVA
Output:
C#
Output:
PHP
Output: