Karthikeya Boyini has Published 2383 Articles

Area of circle which is inscribed in an equilateral triangle?

karthikeya Boyini

karthikeya Boyini

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

8K+ Views

The area of a circle inscribed inside an equilateral triangle is found using the mathematical formula πa2/12.Lets see how this formula is derived, Formula to find the radius of the inscribed circle = area of the triangle / semi-perimeter of triangle.Area of triangle of side a = (√3)a2/4Semi-perimeter of triangle ... Read More

Area of Circumcircle of a Right Angled Triangle?

karthikeya Boyini

karthikeya Boyini

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

878 Views

The area of circumcircle of a right-angle triangle when the hypotenuse(H) of the triangle is given is found using the formula πH2/4.This formula is derived using the fact that the circumcircle touches all the corners of the triangle, in this case the maximum length between two points in the hypotheses ... Read More

A comma operator question in C/C++ ?

karthikeya Boyini

karthikeya Boyini

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

200 Views

Comma Operator in C/C++ programming language has two contexts −As a Separator −As an operator − The comma operator { , } is a binary operator that discards the first expression (after evaluation) and then use the value of the second expression. This operator has the least precedence.Consider the following ... Read More

C/C++ program to make a simple calculator?

karthikeya Boyini

karthikeya Boyini

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

809 Views

A simple calculator is a calculator that performs some basic operations like ‘+’ , ‘-’ , ‘*’ , ‘/’. A calculator does basic operation in a fast way. We will use switch statement to make a calculator.SampleOperator − ‘+’ => 34 + 324 = 358 Operator − ‘-’ => 3874 - 324 = 3550 Operator − ‘*’ => 76 * 24 = 1824 Operator − ‘/’ => 645/5 = 129Example Code#include op;    cout

HTML DOM innerText Property

karthikeya Boyini

karthikeya Boyini

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

144 Views

The HTML DOM innerText property returns and allow us to modify inner text content of an HTML element.SyntaxFollowing is the syntax −1. Returning inner textobject.innerText2. Setting inner textobject.innerText=”text”ExampleLet us see an example of innerText property − Live Demo    body{       text-align:center;    }    .box{ ... Read More

HTML DOM Input Button type Property

karthikeya Boyini

karthikeya Boyini

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

109 Views

The HTML DOM input button type property returns the type of the input button i.e. whether it is of “button”, “submit” or “reset” type.SyntaxFollowing is the syntax −object.typeExampleLet us see an example of input button type property − Live Demo HTML DOM type Property    body{     ... Read More

HTML DOM Input Button value Property

karthikeya Boyini

karthikeya Boyini

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

98 Views

The HTML DOM value property returns and modify the content of the value attribute of input button.SyntaxFollowing is the syntax −1. Returning valueobject.value2. Modifying valueobject.value=”text”ExampleLet us see an example of value property Live Demo HTML DOM value Property    body{       text-align:center    }    .btn{ ... Read More

What is the purpose of taglib directive in JSP?

karthikeya Boyini

karthikeya Boyini

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

522 Views

The taglib directive declares that your JSP page uses a set of custom tags, identifies the location of the library, and provides means for identifying the custom tags in your JSP page.The taglib directive follows the syntax given below −Where the uri attribute value resolves to a location the container ... Read More

Which is the fastest method to get the total row count for a MySQL Query?

karthikeya Boyini

karthikeya Boyini

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

149 Views

You can use subquery with aggregate COUNT(*) to get the total row count. Let us first create a table −mysql> create table DemoTable (    StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    StudentFirstName varchar(20),    StudentAge int ); Query OK, 0 rows affected (0.48 sec)Insert some records in the table ... Read More

How to use time zone in a JSP?

karthikeya Boyini

karthikeya Boyini

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

375 Views

The tag is used to specify the time zone that all tags within its body will use.AttributeThe tag has the following attributes −AttributeDescriptionRequiredDefaultValueTime zone to apply to the bodyYesNoneExample           JSTL fmt:timeZone Tag                 ... Read More

Advertisements