Java

## Swap two numbers using temporary variable in Java

Write a java program to swap two numbers using third variable in Java Java Code: public static void...

JavaScript

## JavaScript Program to Find GCD of Two Numbers

In this program, we’ll learn to find Greatest Common Divisor (GCD) of two numbers in JavaScript...

Python

## Python Program to find gcd of two numbers using for loop

Python Code: Program to find gcd of two numbers using loops # take input from the user num1 =...

Java

## Java Arrays Tutorial

How do you declare an array in Java? Arrays are data types that store multiple values of a single...

C++

## C++ Functions With Examples

We have just seen how to vary the course of a program using loops and connections. Before that, I...

Java

## Java Program to Calculate Area and Perimeter of Rectangle

To find the area of a rectangle or a square you need to multiply the length and the width of...

C

## C Program to Calculate Area and Perimeter of Rectangle

To find the area of a rectangle or a square you need to multiply the length and the width of...

C++

## Display Number Entered by User in C++

Write a C++ program to  print the number entered by a user using C++ cout statement. C++ Code:...

## Create Printer Friendly Web Page Using Media Attribute

How do I print a website that is printer friendly? When you create a web page you usually keep in...

Java

## Calculate Factorial in Java

In this example, I’ll show you How to Calculate Factorial in Java.   public static void...

## Pseudocode for Swapping Two Variables

In this pseudocode we will swap the values of two variables using a temporary variable. Here...

PHP

## PHP Program to Check Whether a Number is Even or Odd

Write a PHP program to check whether a number is even or odd using if else. How to check whether a...

C

## C Program to Count Total Number of Negative Elements in an Array

In this example you will learn how to find and count all negative elements in array.  How to count...

C

## Write a C Program to Count Number of Even and Odd in an Array

In this tutorial I’ll show you how to write a c program to input elements in array from user...

C++

## First C ++ Program with cout and cin

This chapter will be quite simple: we will see what techniques we use in C ++ to display text on...