Arnab Chakraborty has Published 3734 Articles

Auxiliary Space with Recursive Functions in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 13:00:00

445 Views

Here we will see how the auxiliary space is required for recursive function call. And how it is differing from the normal function call?Suppose we have one function like below −long fact(int n){    if(n == 0 || n == 1)       return 1;    return n * ... Read More

Area of the biggest possible rhombus that can be inscribed in a rectangle in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:53:32

166 Views

Here we will see one problem, where one rectangle is given. We have to find the area of largest rhombus that can be inscribed in the rectangle. The diagram will be look like below −The length of the rectangle is ‘l’ and breadth is ‘b’ So the area of the ... Read More

Area of squares formed by joining mid points repeatedly in C Program?

Arnab Chakraborty

Arnab Chakraborty

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

150 Views

Suppose we have one square whose side is ‘a’. We will make more squares by attaching the mid-points of the squares repeatedly. The number of repetition is n times. We have to find the area of nth square.As the side of the outer square is ‘a’, then area isNow using ... Read More

Area of largest triangle that can be inscribed within a rectangle in C Program?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:38:37

191 Views

Suppose one rectangle is given. We know the length L and breadth B of it. We have to find the area of largest triangle that can be inscribed within that rectangle −The largest triangle will always be the half of the rectangle. So it will beExample#include #include using ... Read More

Area of Largest rectangle that can be inscribed in an Ellipse?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:33:28

363 Views

Here we will see the area of largest rectangle that can be inscribed in an ellipse. The rectangle in ellipse will be like below −The a and b are the half of major and minor axis of the ellipse. The upper right corner of the rectangle is (x, y). So ... Read More

C Program for area of hexagon with given diagonal length?

Arnab Chakraborty

Arnab Chakraborty

Updated on 20-Aug-2019 12:23:31

434 Views

Here we will see how to get the area of one hexagon using diagonal length. The diagonal length of the hexagon is d.The interior angles of a regular hexagon are 120° each. The sum of all interior angles are 720°. If the diagonal is d, then area is −Example#include ... Read More

C Program for area of decagon inscribed within the circle?

Arnab Chakraborty

Arnab Chakraborty

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

240 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 circle inscribed within rhombus in C Program?

Arnab Chakraborty

Arnab Chakraborty

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

218 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 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

157 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

606 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

Advertisements