Arnab Chakraborty has Published 4293 Articles

C Program for area of decagon inscribed within the circle?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:19:06

193 Views

Here we will see how to get the area of decagon which is present inside the circle. The radius is given. The side of the decagon is ‘a’.As we know that the side of the decagon is like below −So the area is −Example#include #include using namespace std; ... Read More

Area of Circumcircle of a Right Angled Triangle in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:14:41

192 Views

Here we will see how to get the area of circumcircle of a right angled triangle. The hypotenuse of the triangle is forming the diameter of the circle. So if the hypotenuse is h, then radius is h/2So the area is −Example Code#include #include using namespace std; float ... Read More

Area of circle which is inscribed in equilateral triangle in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:09:05

311 Views

Here we will see the area of circle which is inscribed in an equilateral triangle. The sides of the triangle are ‘a’.The area of equilateral triangle −The semi-perimeter of the triangle is −So the radius of the circle is −Example#include #include using namespace std; float area(float a) { ... Read More

Area of circle inscribed within rhombus in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:02:47

184 Views

Here we will see the area of circle which is inscribed in a rhombus. The diagonals of the rhombus are ‘a’ and ‘b’. The radius of the circle is h.Two diagonals are creating four equal triangles. Each triangle is right-angled triangle, so their area is −Each side of the rhombus ... Read More

Area of a triangle inscribed in a rectangle which is inscribed in an ellipse In C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 11:56:52

91 Views

Here we will see the area of a triangle which in inscribed in one rectangle and that circle is inscribed in an ellipse. The half of the major and minor axis are ‘a’ and ‘b’ respectively. Suppose the length of the rectangle is ‘l’ and breadth is ‘h’We know that ... Read More

Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 11:46:54

124 Views

Here we will see the area of a square which in inscribed in one circle and that circle is inscribed in a hexagon. The side of the square is ‘a’. The radius of the circle is ‘r’, and the side of the hexagon is ‘A’. The diagram will be like ... Read More

Alphanumeric Abbreviations of a String in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 11:31:43

522 Views

Here we will see one interesting problem related to alphanumeric abbreviation of a given string. The string length is less than 10. We will print all alphanumeric abbreviations.The alphanumeric abbreviation is in the form of characters mixed with the digits. The value of that digit is number of characters that ... Read More

Binary Search Tree insert with Parent Pointer in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 07:53:29

820 Views

We can insert new node into the BST in recursive manner. In that case we return the address of the root of each subtree. Here we will see another approach, where parent pointer will need to be maintained. Parent pointer will be helpful to find ancestor of a node etc.The ... Read More

Array Index with same count of even or odd numbers on both sides in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 07:43:06

155 Views

Here we will see one problem, suppose one array is given. There are n elements. We have to find one index, where frequency of even numbers of its left and the frequency of even numbers of its right side are same, or the frequency of odd numbers of its left ... Read More

Area of the Largest square that can be inscribed in an ellipse in C++

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 07:32:24

120 Views

Here we will see the area of largest square that can be inscribed in an ellipse. The square in ellipse will be like below −The area of ellipse is −Now, if x and y are same, thenSo area is −Example#include #include using namespace std; float area(float a, float ... Read More

Advertisements