Sunidhi Bansal has Published 1100 Articles

Program to check if a given year is leap year in C

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 06:41:09

467 Views

Leap year has 366 days whereas a normal year has 365 days and the task is to check through the program whether the given year is a leap year or not.The logic for it can be through checking if year is divided by 400 or 4 but if the number ... Read More

Program to calculate value of nCr in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 06:37:22

3K+ Views

Given with n C r, where C represents combination, n represents total numbers and r represents selection from the set, the task is to calculate the value of nCr.Combination is the selection of data from the given in a without the concern of arrangement. Permutation and combination differs in the ... Read More

Program to calculate the value of nPr in C Program

Sunidhi Bansal

Sunidhi Bansal

Updated on 23-Sep-2019 06:32:26

344 Views

Given with the n P r, where P represents Permutation, n represents total numbers and r represents arrangement the task is to calculate the value of nPr.Permutation is the arrangement of data in a sequence or order. Permutation and combination differs in the sense that permutation is the process of ... Read More

Program to Calculate the Perimeter of a Decagon in C program

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:44:39

90 Views

What is Decagon?Given with side, the task is to calculate the perimeter of decagon. Decagon is a type of polygon with 10-sides that’s why it is also known as 10-gon polygon. It have 10 vertices and edges. A regular decagon has sides of equal length and each internal angle of ... Read More

Program for Fibonacci numbers in PL/SQL

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:39:12

9K+ Views

Given with ‘n’ numbers the task is to generate the fibonacci numbers in PL/SQL starting from 0 to n where fibonacci series of integer is in the form0, 1, 1, 2, 3, 5, 8, 13, 21, 34Where, integer 0 and 1 will have fixed space, after that two digits are ... Read More

Program for volume of Pyramid in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:30:34

715 Views

Given with sides depending upon the type of base of pyramid the task is to calculate the volume of pyramid.Pyramid is a 3-D figure whose outer surfaces are triangular meeting at the common point forming the sharp edge of pyramid. Volume of pyramid depends upon the type of base it ... Read More

Program to calculate volume of Ellipsoid in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:25:59

147 Views

Given with r1, r2 and r3 the task is to find the volume of ellipsoid. An ellipsoid is a quadric surface, a surface that may be defined as the zero set of a polynomial of degree two in three variables. Among quadric surfaces, an ellipsoid is characterized by either of ... Read More

Program for Volume and Surface area of Frustum of Cone in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:21:20

411 Views

What is Frustrum of cone?Frustum of a cone is formed by cutting the tip of a cone leaving lower and upper base known as frustum as shown in the figure. The upper base of frustum will have radius ‘r’, lower base will have radius ‘R’ with height ‘h’ and slant ... Read More

Program to calculate the area between two Concentric Circles in C++?

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:16:10

346 Views

What is Concentric Circle?Concentric circle is the circle inside the circle which means they share common center with different radius lengths i.e. r1 and r2 where, r2>r1. Region between two concentric circles is known as annulus.Given below is the figure of Concentric CircleProblemGiven with two concentric circles of different radius ... Read More

Program to calculate the Area and Perimeter of Incircle of an Equilateral TriangleWhat is Equilateral Triangle in C?

Sunidhi Bansal

Sunidhi Bansal

Updated on 20-Sep-2019 14:02:44

125 Views

What is Equilateral Triangle?As the name suggests, equilateral triangle is the one that have equal sides and also it have equal interior angles of 60° each. It is also known as regular triangle because it’s a regular polygonProperties of equilateral triangle are −3 sides of equal lengthInterior angles of same ... Read More

Advertisements