10+ Examples and Best Practices in Responsive Web Design

With more and more people surfing the internet via their smartphones, it has become mandatory for web designers and developers to figure out ways to cater websites to visitors coming from mobile devices. The ever-growing demand for mobile-friendly websites has given birth to responsive web design trend. If you too are all excited to know …

10+ Examples and Best Practices in Responsive Web Design Read More »

Hello World Program in Eight Different Popular Programming Languages

This fact is true that Hello World program is the first program that a programmer writes when he/she start learning a new programming language. Today I thought that I should share the hello world program in different languages. A video is also added for easy understanding of the programs. Let’s take a look on these …

Hello World Program in Eight Different Popular Programming Languages Read More »

Java Program for Multiplication of two Matrices

import java.util.Scanner; //import Scanner class in our program class demo { public static void main(String…s) { int i,j,m,n,p,q,k; Scanner sc=new Scanner(System.in); //used to read from keyboard System.out.print(“Enter number of rows and columns of first matrix:”); m=sc.nextInt(); n=sc.nextInt(); System.out.print(“Enter number of rows and columns of second matrix:”); p=sc.nextInt(); q=sc.nextInt(); if(n!=p) System.out.print(“nSorry multiplication can’t be done!!”); else …

Java Program for Multiplication of two Matrices Read More »

Java Program for Addition of two Matrices

import java.util.Scanner; //import Scanner class in our program class demo { public static void main(String…s) { int i,j,n,m; Scanner sc=new Scanner(System.in); //used to read from keyboard System.out.print(“Enter number of rows:”); m=sc.nextInt(); System.out.print(“Enter number of columns:”); n=sc.nextInt(); int a1[][]=new int[m][n]; int a2[][]=new int[m][n]; int a3[][]=new int[m][n]; System.out.print(“nEnter elements of first matrix:n”); for(i=0;i<m;++i) for(j=0;j<n;++j) a1[i][j]=sc.nextInt(); System.out.print(“nEnter elements …

Java Program for Addition of two Matrices Read More »

What is Tail Recursion?

Here you will learn about what is tail recursion with example. Tail recursion refers to recursive call at last line. The tail recursive functions considered better as the recursive call is at the last statement so there is nothing left to do in the current function. It saves the current function’s stack frame is of …

What is Tail Recursion? Read More »