While Loop In Java – Executing a set of statements repeatedly is known as looping. We have 3 types of looping constructs in Java. These looping statements are also known as iterative statements. While For Loop Do While All the three are used primarily with same purpose and the difference is in their syntax. Because of the syntactical differences, their ...
Read More »Author Archives: Writer - MK
C Program To Calculate Perimeter Of Rhombus | C Programs
C Program to calculate the perimeter of a rhombus – In this particular article, we will discuss the several ways to calculate the perimeter of a rhombus in C programming. The methods used to do so are as follows: Using Standard Method Using Functions Using Pointers Using Macros As we all know, a rhombus is a 2-dimensional quadrilateral figure whose ...
Read More »C Program To Calculate Perimeter Of Rectangle | C Programs
C Program to Calculate the perimeter of a rectangle – In this distinct article, we will brief in on all the ways you can calculate the perimeter of a rectangle in C Programming. The ways that are used to do so in this blog are as follows: Using Standard Method Using Functions Using Pointers Using Macros In this piece, we ...
Read More »Java Program To Calculate Area Of Triangle – 5 Ways
Java program to calculate the area of a triangle when three sides are given or normal method. Calculating the area of a triangle is quite simple if you know the basics of java programming. If you were at newbie level to learn the Java programming then check out the following tutorial so that you will get an idea. The following ...
Read More »C Program Volume Of Cuboid | C Programs
C program to find the volume of a cuboid – In this stipulated article, we will talk about the multiple ways of how to find the volume of a cuboid in C programming. Several suitable examples and sample outputs have been added as well. The compiler has been added for the proper understanding of the following C programming codes. The ...
Read More »Java Program To Find Area Of Rectangle | 3 Ways
Java program to calculate the area of a rectangle. There are maybe so many methods in order to write the java program to find the area of a rectangle. Here we share the two methods, sample method -1, and sample method-2 with online compiler and execution tool. Below are the online compiler and execution tool check it out #area of ...
Read More »Java Program To Find Area Of Equilateral Triangle
Another exciting post, Java program to find the area of an equilateral triangle or to calculate the equilateral triangle in just two to three simple code lines. Most of the programs that you came across are good, but the length of the code was pretty annoying and confused too. So, we came up with the new code that works well, with ...
Read More »C Program To Calculate Perimeter Of Square | C Programs
C Program to Calculate the perimeter of a square – In this distinct article, we will brief in on the multiple ways to calculate the perimeter of a square in C Programming. In this blog, we have given suitable examples and sample programs for you. The compiler has also been added in order to understand the codes little better. The ...
Read More »Java Program To Calculate Salary Of An Employee | 3 Ways
Java Program To Calculate Salary of An Employee – In this article, we will detail in on all the methods used to calculate the net salary of an employee in Java Code. Suitable examples and sample programs have been included in order to make you understand simply. Employee program in Java. The methods used in this article are as follows: ...
Read More »Java Program To Calculate Average Of N Numbers
Java program to calculate the average of N numbers. Here is the code to calculate the average of N numbers or average of 2 or 3 numbers. The following code has been written in three different ways, using standard values, using do while, recursion, command line arguments, creating a separate class, user-defined method. How to calculate the average of N ...
Read More »