Write a Python program to check if a triangle is equilateral, isosceles or scalene. Note : An equilateral triangle is a triangle in which all three sides are equal. A scalene triangle is a triangle that has three unequal sides. An isosceles triangle is a triangle with (at least) two equal...
Implementation of equilateral triangle in C is as follows −Open Compiler #include <stdio.h> int main() { int n,i,j; n = 5; // number of rows. for(i = 1; i <= n; i++) { for(j = 1; j <= n-i; j++) printf(" "); for(j = 1; j <= i; j++) printf("* ")...
Formula to find area of Equilateral Triangle:area = ( 1.73 × side × side)/4 Example: Input: side = 7 Output: area = 21.1925 Program to find area of Equilateral Triangle in Kotlin packagecom.includehelpimport java.util.* import kotlin.math.pow//Main Function , Entry point of Programfun...
In this paper, we study the problem of evacuating a unit equilateral triangle and a unit-side square in the face-to-face model with k≥2 robots, all of which are initially located at the centroid of the triangle or the square. Our objective is to design the trajectories of the robots ...