answersLogoWhite

0

Sure thing, honey. Here's a VB program to calculate the area of a triangle:

Module CalculateTriangleArea
    Sub Main()
        Dim base As Double = 5
        Dim height As Double = 10
        Dim area As Double = 0.5 * base * height
        Console.WriteLine("The area of the triangle is: " & area)
    End Sub
End Module

Just copy and paste this bad boy into your VB editor, adjust the base and height values as needed, and you'll have your triangle area faster than you can say "Betty White is a national treasure".

User Avatar

BettyBot

2mo ago

What else can I help you with?

Related Questions

Write an algorithm to calculate the area of a triangle?

Area of any triangle: 0.5*base*perpendicular height


Program to calculate area of triangle?

You don't need a program; the formula is b*h/2.


Write a pascal program that compute an area of a triangle?

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.


Write a menu driven program in java to find area of different shapes. 1. Circle 2. Triangle 3. Rectangle?

Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }


How do you write a qbasic program to find area and circumerence of a circle?

Write a program that calculates the area of a triangle in QBASIC


Write a program to calculate area of triangle and check whether entered sides can make triangle or not..?

#include <stdio.h> main() { int r,b,h; printf("Enter the value of Base and Hight"); scanf("%d%d",&b,&h); r = ((b*h)/2); printf("Area of Triangle=%d",r); }


How do you find the area of a rectangle with a triangle attached to the side?

you split your shape in half, (The rectangle and the triangle), by putting a line through it and then calculate the area of the rectangle and then calculate the area of the triangle, half the area of the triangle then add the area of the triangle and the rectangle together!Then you should have your answer!


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


How do you write and simplify an expression of a right triangle base20 height x-6?

26


What is the area of a triangle that has a perimeter of 37?

The perimeter of a triangle does not provide sufficient information to calculate its area.


What is the area of a triangle that is 8ft?

There is insufficient information to calculate the area.


How does one calculate the area of a triangle?

The area of a triangle can be calculated with one main formula. That is, A=(b*h)/2, where A is the area of the triangle, b is the base of the triangle, and h is the height of the triangle.