 Programming Code Examples – Page 2 – C#, Java, Python, C++ Programaming Examples
PHP

## Program to Add Two Numbers in PHP and Show the Sum from Database

In this example, we will take the inputs from the user and temporarily store them in variables and...

C++

## C++ Program to Calculate the Power of a Number Using pow Function

In this program, we use C++  Math.pow() function to calculate the power of the given base. C++...

C++

## C++ Program to Calculate the Power of a Number Using For Loop

In this example, i’ll show you How to Calculate power of a number using a for loop in C++...

C++

## C++ Program to Calculate the Power of a Number Using While Loop

In this program, base and exponent are assigned values 3 and 4 respectively. Using the while loop...

## floor() Method in Python with Examples

In this tutorial, we’ll learn how to use the floor() method in Python. floor() method in...

Python

## ceil() Method in Python with Examples

In this tutorial, we’ll learn how to use the ceil() method in Python. Python number method...

Python

## abs() Method in Python

Python number method abs() returns absolute value of x – the (positive) distance between x...

Java

## Java Program to Print numbers from 1 to 100 without using loops

In this example, i’ll show you How do you print numbers from 1 to 100 without using loop in...

## Python Conditions and If statements with Examples

Conditions are an essential concept in programming. For example, a variable is positive, another...

Pseudocode Examples

## Pseudocode to Find Sum and Average

Pseudocode Example: Read 50 numbers and find their sum and average. (Pseudocode For Loop Example)...

PHP

## PHP Sessions with Example

Sessions allow information to be stored during the visitor’s navigation on the site. They are...

## Java Math Class Methods With Examples

Java Math max() method with Examples The Java.lang.math.max() function is an inbuilt function in...

## Pseudocode – Print Numbers Between 1 to 100 which are divisible by 3, 5 and by both

Write a pseudode to print numbers between 1 to 100 which are divisible by 3, 5 and by both. System...

Pseudocode Examples

## Pseudocode to Print Numbers From 1 to100

Write a pseudocode  to print numbers between 1 to 100.   for(int i = 1; i <= 100; i++) {...

Java

## Java Convert Binary to Decimal

There are two following ways to convert binary number to decimal number: 1) Using Integer...