Sharon Christine has Published 436 Articles

C Program for Program to find the area of a circle?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

16K+ Views

The area is a quantity that represents the extent of the figure in two dimensions. The area of a circle is the area covered by the circle in a two dimensional plane.To find the area of a circle, the radius[r] or diameter[d](2* radius) is required.The formula used to calculate the ... Read More

C Program to Add two Integers

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

770 Views

A program to add two numbers takes to numbers and does their mathematical sum and gives it to another variable that stores its sum.Example Code Live Demo#include int main(void) {    int a = 545;    int b = 123;    printf("The first number is %d and the second number ... Read More

Sum of first N natural numbers which are divisible by X or Y

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

520 Views

Adding up all natural numbers up to n, that are divisible by X or Y is selecting all the numbers that are divisible by X or Y and adding them to a variable that stores the sum.To find the sum of the first N natural numbers which are divisible by ... Read More

Area of the largest triangle that can be inscribed within a rectangle?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

162 Views

A rectangle is a quadrilateral that has opposite side equal and parallel. The adjacent side are at 90o. And a triangle is a closed figure with three sides.The largest triangle inscribed within a rectangle. Has its base equal to the length of the rectangle and height of the triangle is ... Read More

Power Function in C/C++

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

754 Views

Power function is used to calculate the power of the given number.The pow function find the value of a raised to the power b i.e. ab.Syntaxdouble pow(double a , double b)It accepts a double integers as input and output a double integer as output. It pow() function is defined in ... Read More

Average of Squares of Natural Numbers?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

2K+ Views

The average of the square of Natural Number is calculated by adding all the squares up to n natural numbers and then dividing it by the number.SampleAverage of square of first 2 natural numbers is 2.5 ,12 + 22 = 5 => 5/2 = 2.5.There are two methods for calculating ... Read More

Area of circle inscribed within rhombus?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

2K+ Views

Circle inscribed in a rhombus touches its four side a four ends. The side of rhombus is a tangent to the circle.Here, r is the radius that is to be found using a and, the diagonals whose values are given.Now the area of triangle AOB = ½ * OA * ... Read More

HTML DOM paddingLeft Property

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

49 Views

The HTML DOM paddingLeft property returns and add left padding to an HTML element.SyntaxFollowing is the syntax −1. Returning left paddingobject.style.paddingLeft2. Adding left paddingobject.style.paddingLeft=”value”ValuesHere, “value” can be the following −ValueDetailslengthIt defines value padding in length unit.initialIt defines padding to its default value.inheritIn this padding gets inherited from its parent element.percentage(%)It ... Read More

HTML DOM innerHTML Property

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:26

240 Views

The HTML DOM innerHTML property returns and allow us to modify inner HTML of an element. The inner HTML is the content.SyntaxFollowing is the syntax −1. Returning innerHTMLobject.innerHTML2. Setting inner HTMLobject.innerHTML=”value”Here, “value” represents the content or nested HTML elements.ExampleLet us see an example of innerHTML property − Live Demo ... Read More

What is channel allocation in computer network?

Sharon Christine

Sharon Christine

Updated on 30-Jul-2019 22:30:25

16K+ Views

When there are more than one user who desire to access a shared network channel, an algorithm is deployed for channel allocation among the competing users. The network channel may be a single cable or optical fiber connecting multiple nodes, or a portion of the wireless spectrum. Channel allocation algorithms ... Read More

Advertisements