Sudhir sharma has Published 1149 Articles

C/C++ Program to check whether it is possible to make the divisible by 3 number using all digits in an array?

sudhir sharma

sudhir sharma

Updated on 19-Aug-2019 07:35:15

400 Views

To check whether a number is divisible by 3, we add all the digits of the number and then calculate that the sum is divisible by 3 or not. In this problem, there is an array of integers arr[], and we have to check if a number formed with these ... Read More

C/C++ Program for the Triangular Matchstick Number?

sudhir sharma

sudhir sharma

Updated on 19-Aug-2019 07:33:21

218 Views

A triangle that is made by using matchsticks arrange to make an equilateral triangle, this is called the triangular matchstick number. Triangular matchstick number is the number of matchsticks required to make the matchstick triangle.In this problem, we have the number is the floor of a matchstick pyramid, X. and ... Read More

C/C++ Program for the Odd-Even Sort (Brick Sort)?

sudhir sharma

sudhir sharma

Updated on 19-Aug-2019 07:26:35

492 Views

The odd-even sword also known as the brick sort is a similar sorting technique, like bubble sort. This sorting technique is subdivided into 2 phases odd phase and even phase, Both these phases simultaneously at every iteration until all the elements get sorted.The Odd phase of this programming technique works ... Read More

C/C++ Program for Number of solutions to Modular Equations?

sudhir sharma

sudhir sharma

Updated on 19-Aug-2019 07:17:42

138 Views

We have an n number of coins and we have to French the coin way that it makeup Pyramid of maximum height. We will arrange the first coin in First row second and third coin in the second row and so onIn the given diagram, we make pyramid 6 of ... Read More

C/C++ Program for Finding the vertex, focus and directrix of the parabola?

sudhir sharma

sudhir sharma

Updated on 19-Aug-2019 07:14:05

395 Views

A set of points on a plain surface that forms a curve such that any point on that curve is equidistant from a point in the center (called focus) is a parabola.The general equation for the parabola isy = ax2 + bx + cThe vertex of a parabola is the ... Read More

Addition of two number using ‘-‘ operator?

sudhir sharma

sudhir sharma

Updated on 16-Aug-2019 12:05:43

3K+ Views

Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user-defined meaning to it. The overloaded operator is used to perform the operation on the user-defined data type. For example, '+' operator can be overloaded to perform addition ... Read More

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

sudhir sharma

sudhir sharma

Updated on 13-Aug-2019 10:21:35

163 Views

The program to find the area of a square inscribed in a circle which itself is inscribed in an equilateral triangle. The radius of circle inscribed inside an equilateral is a/(2√3).The diameter of circle is the diagonal of square, d = 2 * r = a/ √3 Area formula for area ... Read More

Area of a n-sided regular polygon with given Radius in C Program?

sudhir sharma

sudhir sharma

Updated on 13-Aug-2019 08:27:29

405 Views

A polygon is a ‘n’ sided closed figure.N sided polygon means a polygon with n equal sides. The radius of a polygon is distance between center and vertex.In the figure we can see that the whole polygon can be divided into n equal polygonWe know, area of the triangle = ... Read More

Superperfect Number in C programming

sudhir sharma

sudhir sharma

Updated on 13-Aug-2019 07:50:54

531 Views

The concept of super perfect number is similar to the perfect number. It was found by D Suryanarayana in 1969. He generalized the super perfect number as a number that satisfies the following formula :sig(sig(n)) = 2nHere, sig(n) is the function that calculates the sum of divisors of a number, ... Read More

Super Prime in c programming

sudhir sharma

sudhir sharma

Updated on 13-Aug-2019 07:49:34

2K+ Views

A super-prime number is A number that occupies prime number position in the sequence of all prime numbers. also known as high order primes, These numbers occupy the position in the sequence of prime number which is equal to Prime number. some super prime numbers are 3, 5, 11, 1 ... Read More

Advertisements