Found 1401 Articles for C

Biggest Square that can be inscribed within an Equilateral triangle in C?

sudhir sharma
Updated on 07-Oct-2019 07:19:35

78 Views

An inscribed planar shape or solid is one that is enclosed by and "fits snugly" inside another geometric shape or solid. To say that "square is inscribed in triangle" means precisely the same thing as "triangle is circumscribed about square".Biggest Square that can be inscribed within an Equilateral triangle −Biggest Square that can be inscribed within an Equilateral triangle −Let’s take an example, Input: 5 Output: 2.32ExplanationThe side of the square be x.Now, AH is perpendicular to DE.DE is parallel to BC, angle AED = angle ACB = 60In triangle EFC,    ⇒ Sin60 = x/ EC   ⇒ √3 / ... Read More

Biggest Reuleaux Triangle within A Square in C?

sudhir sharma
Updated on 07-Oct-2019 07:14:34

56 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux ... Read More

Biggest Reuleaux Triangle within a Square which is inscribed within a Circle in C?

sudhir sharma
Updated on 07-Oct-2019 07:12:03

95 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux triangleFormula for Reuleaux triangleArea of the Reuleaux ... Read More

Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle in C?

sudhir sharma
Updated on 07-Oct-2019 07:09:13

61 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux ... Read More

Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse in C?

sudhir sharma
Updated on 07-Oct-2019 07:06:14

60 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux ... Read More

Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon in C?

sudhir sharma
Updated on 07-Oct-2019 07:03:02

57 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux ... Read More

Biggest Reuleaux Triangle inscribed within a square inscribed in a semicircle in C?

sudhir sharma
Updated on 04-Oct-2019 08:33:33

69 Views

A Reuleaux triangle is a shape formed by using intersection of three circle, in such a way that each having its center on the boundary of the other two circles. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the ... Read More

Betrothed numbers in C?

sudhir sharma
Updated on 04-Oct-2019 08:30:08

1K+ Views

Betrothed numbers are pair of two numbers in a way that the sum of their divisors when added by is equal to another number.For example (a,  b) are a pair of betrothed numbers if s(a) = b + 1 and s(b) = a + 1, where s(b) is the aliquot sum of b: an equivalent condition is that σ(a) = σ(b) = a + b + 1, where σ denotes the sum-of-divisors function.The first few pairs of betrothed numbers are: (48,  75), (140,  195), (1050,  1925), (1575,  1648), (2024,  2295), (5775,  6128).All known pairs of betrothed numbers have opposite parity. Any pair of the same parity must exceed 1010.AlgorithmStep 1: Find the sum of all divisors for both numbers. Step 2: Finally ... Read More

Array elements that appear more than once in C?

sudhir sharma
Updated on 04-Oct-2019 08:13:33

854 Views

Array is a container of elements of Same data types length needs to be defined beforehand. And an element can appear in any order and any number of times in an array. so in this program we will find elements that appear more than once in an array.Problem description − We have given an array arr[] in which we have to find which of the element are repeating in the array an app to print them.Let’s take an example to understand this better.Example, Input: arr[] = {5, 11, 11, 2, 1, 4, 2} Output: 11 2ExplanationWe have an array arr ... Read More

C Preprocessors?

sudhir sharma
Updated on 04-Oct-2019 07:28:48

139 Views

C programming language supports preprocessors for efficient working of its program. C Preprocessor is a macro preprocessor for C based programming language. A preprocessor gives the compiler an ability for including header files, macro expansions, conditional compilation and line control in an explicit way.The # hash tag is used to define a preprocessor i.e. all preprocessors have # in starting. Followed by the name of the preprocessor without any space in between. Here, is a list C preprocessors.S.No.PreprocessorDescription1.#includeIncludes a specific header from the files.2.#defineDefines a preprocessor macro.3.#undefUndefine a preprocessor macro4.#ifChecks for a compile time condition and evaluates for True value.5.#elseEvaluate ... Read More

Advertisements