# 2 ways in Java to add all the numbers below 1000 that are multiples of 3 or 5

This question is taken from Project Euler. Link We will be showing you 2 solutions to this program: Simple but slow A little Complicated but fast The Simple but Slow Program: The logic used in the program is quite simple. …

# Java program to find out the Hypotenuse of a right angled triangle

This program will tell you the length of the hypotenuse side using the Pythagoras theorem. For more details on Pythagoras theorem, please click here. The program asks the user to input the length of two sides and then it calculates …

# Java program to check if a triangle is right angled using Pythagoras theorem

Ok, this java program will check if the triangle is right angled using the Pythagoras theorem. According to the Pythagoras theorem, in any right triangle, the area of the square whose side is the hypotenuse is equal to the sum …

# Java program to to convert Octal number into Decimal number

Octal to Decimal: How to Convert Octal to decimal conversion is one of the most commonly taught problem solving exercises in computer basics. So is there an octal to decimal formula? Yes, an octal number can be converted to a …

# C++ Program to demonstrate Insertion Sort

Insertion sort is a simple sorting algorithm: a comparison sort in which the sorted array (or list) is built one entry at a time. How it works: In insertion sort,elements are entered into the array(or list) 1-by-1. When the first element is …

# Demonstrate Class in C++

In this program, we will demonstrate Classes. Here, we’ve considered an example to calculate area of a rectangle. We will create a class named ‘Rectangle’. Syntax to declare a class:

Class Rectangle: Next, we create a function ‘Area’ to …