Sudhir sharma has Published 1149 Articles

Sum of the first N terms of the series 2,10, 30, 68,…. in C programming

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 11:28:04

204 Views

To find the sum of this series, we will first analyze this series.The series is:The given series is 2, 10, 30, 68…For exampleFor n = 6 Sum = 464On analysis of the given series, you will see that the series is the addition of two series first one is the ... Read More

Sum of the first N terms of the series 2, 6, 12, 20, 30…. in c programming

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 11:21:01

338 Views

To find the sum of this series, we will first analyze this series.The series is: 2, 6, 12, 20, 30…ExampleFor n = 6 Sum = 112 On analysis, (1+1), (2+4), (3+9), (4+16)... (1+12), (2+22), (3+32), (4+42), can be divided into two series i.e. s1:1, 2, 3, 4, 5… andS2: 12, ... Read More

C++ Programming Internals?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 07:28:43

559 Views

C++ Internals means how the working of C++ compiler compiling the .cpp code and giving us the output. C++ is a popular programming language mostly used for writing system software. It is an extension of the C programming language. C is a compiled language. The C++ compiler compiles C++ code ... Read More

C Program for simple interest?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 07:20:30

664 Views

Simple Interest is the product of principal amount, rate of interest and the time duration (in years) by 100.Example, Input − p=5, r=4, t=5Output − 1Explanation: Simple Interest = (Principal Amount * Rate of Interest * Number of years) / 100SI= 5*4*5/100 = 1Example#include #include using namespace std; int ... Read More

Area of a leaf inside a square in C Program?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 07:07:47

306 Views

To find the area of leaf inside a square, we need to split it into parts and find the area of parts and then add the areas to find the area of leaf.To calculate the area we are splitting the leaf into two parts.To find the area of 1st part ... Read More

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

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 06:57:01

208 Views

Given, A square that is inscribed within a circle that is inscribed in a regular hexagon and we need to find the area of the square, for that we need to find the relation of the side of square and the side of the hexagon.The mathematical formula for the radius ... Read More

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

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 06:52:46

323 Views

For understanding this complex problem, let's do it in two parts. First we will find the dimensions of the rectangle and based on that we can find the area of a triangle inscribed in it.Using the equation of ellipse and differential calculus, mathematical formula for the area of a rectangle ... Read More

Area of decagon inscribed within the circle in C Program?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 06:43:58

297 Views

A regular decagon is a ten sided polygon with all sides and angles equal. And here we need to find the area of a decagon that is inscribed inside a circle using the radius of the circle r, Mathematical formula for the side of the decagon inscribed in the circle, ... Read More

Area of hexagon with given diagonal length in C Program?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 06:40:03

1K+ Views

A Hexagon is a closed figure of 6 side and a regular hexagon is the one which has all six sides equal and angle equal. For finding the area of hexagon, we are given only the length of its diagonal i.e d.The interior angles of Hexagon are of 120 degrees ... Read More

Area of largest Circle inscribed in N-sided Regular polygon in C Program?

sudhir sharma

sudhir sharma

Updated on 09-Aug-2019 06:34:34

202 Views

An n-sided regular polygon inscribed in a circle, the radius of this circle is given by the formula, r = a/(2*tan(180/n))Suppose a polygon have 6 faces i.e., a hexagon and as we know mathematically that the angle is 30 degreeSo the radius of circle will be (a / (2*tan(30)))Therefore, r ... Read More

Advertisements