Perform Matrix Multiplication using C++

Below is a C++ program to perform Matrix Multiplication. This program is successfully compiled, and the output is also given below. Matrix Multiplication in C++ #include<iostream> using namespace std; int main () { int row1, clum1, row2, clum2; int i, j, k; int X[8][8], Y[8][8], Z[8][8]; cout << "Please Enter Rows and Columns Of Mateix... » read more

How to Convert Binary to Octal in C

This program will accept input from the user as a binary number and convert that number into an octal number. To correctly understand this program, you should be familiar with the while loop concept. Convert Binary to Octal using C Here is the program source code to convert the binary number into octal. This program... » read more

PHP Date and Time

In this lesson, you will learn about the date and time in PHP. Every web developer has to deal with time and date at some point. Displaying and manipulating times and date may seem simple, but as uses may live in different time zone and probably have a different way of understanding time formats, it... » read more

PHP File Upload

In this lesson, you will learn about how to upload files and images to the web server. This action is relatively easy to perform in PHP. When we mention files and images, we are talking about all sort of data and images on your computer such as MS word files, pdf files, images, etc. It... » read more

PHP Send Email

In this lesson, you will learn how to send emails using PHP. Send email using PHP Nowadays, almost every web application use mail functionality. Even simple one-page business websites have these contact forms where you enter your email, contact email, and message which goes directly to the business management or owner’s inbox. This looks convenient... » read more

PHP Sessions

In this lesson, you will learn how to create and use sessions for seamless user experience over a web application. The session is a crucial concept behind information persistence across all the pages of a website or app. Sessions in PHP A session keeps a piece of information available across the web applications to identify... » read more

PHP Cookies

In this lesson, you will learn about HTTP cookies in PHP. An HTTP cookie refers to the small piece of data sent by the web server to the user’s web browser. The browser may save it and sent it back to the web server with the next request sent. It can contain up to 4KB... » read more

How to Swap Two Numbers using C#

Swapping of two numbers refers to the exchanging values of two variables. Here are two methods which we can use for swapping two integers Swap using a temporary variable Swap without using a temporary variable Swap two integer using a temporary variable This swap operation is performed by using a third variable (a temporary variable). Here... » read more

Check if a Year is Leap Year or Not using C#

There are 356 days in a common year while a leap year has 366 days. February 29 is a date Which occurs once after every four years and is called leap day. February 29 is included to the leap year calendar as leap day because the Earth does not complete its orbit around the sun... » read more

PHP Functions

In this lesson, you will learn about functions in PHP. A function is a reusable piece of code that performs some kind of specific action. Mostly, functions take some kind of input data, process that data and return results when called. PHP gives over 700 built-in functions to make developers life easy. Why you will... » read more

PHP File Handling

In this lesson, you will learn how to interact with files using PHP. The database is not the only way to store all information on a web server. Sometimes it can be more efficient to store data on files rather than on the database. Other cases in which you may need to modify files, upload... » read more

PHP Get and Post methods

In this lesson, you will learn how to access and manipulate data submitted by users through forms. Information can be submitted through HTML forms to the same or another web page. To send submitted data through a form, one can use GET and post method to do that in PHP. GET and Post in PHP... » read more

PHP Arrays

In this lesson, you will learn how to create, access and, manipulate arrays. An array is a simple data structure which can hold multiple values in a continuous memory location. Let’s say you have to create a variable to hold a student’s marks. What if you have 100 students in the class? One solution is... » read more

PHP foreach Loop

In this lesson, you will learn how to use the foreach loop in PHP. The foreach constructs is an easy way to traverse all elements of an array. Introduction to foreach loop in PHP First, let’s start off with the syntax. PHP foreach can be written in 2 ways: foreach ( array_expression as $value) The... » read more

PHP while loop

In this lesson, you will learn how to use while loop in PHP. A ‘while loop’ let you run the same set of a statement(s) repeatedly until a condition is met. Introduction to ‘while loop’ in PHP The syntax while( expression ){ //statement } The expression in the while loop is checked at the start of... » read more