## How Can I Calculate the Difference Between Two Dates in PHP?

Calculating the difference between two dates is not as easy as it sounds. There are a lot of things that can go wrong if you are not careful. For example, you have to take both leap years and daylight saving time into...

## How to get Mac Address using JAVA?

In this post, we will learn how to get the MAC address and IP address of the machine using Java program Java Code: import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import...

## R Program to check number is even or odd

In this program, You will learn how to check number is even or odd in R. R Program Example: How to check number is even or odd in R { num <- as.integer(readline(prompt = "Enter a number :")) if (num %% 2 == 0) {...

## R Program to Check Age of a user is eligible for voting or not

In this program, You will learn how to check the age of a user is eligible for voting or not in R. R Program Example: How to Check Age of a user is eligible for voting or not in R { age <- as.integer(readline(prompt...

## R Program to find the square root of a number

In this program, You will learn how to find the square root of a number in R. R Code Example: How to find the square root of a number in R { num <- readline(prompt = "Enter a number :") num <- as.integer(num)...

## R Program to initialize more than one variable at a time

In this program, You will learn How to initialize more than one variable at a time in R. R Example: How to initialize more than one variable at a time in R x = y = z = 20 print(paste("x value is :",x)) print(paste("y...

## R Program to add two numbers by user input

In this program, You will learn how to add two numbers by user input in R. R Example: How to add two numbers by user input in R { x <- readline(prompt="Enter first number :") y <- readline(prompt="Enter second...

## C Program to Search a Record by Name in Binary File

Program to Search a Record by Name in Binary File Input for C Program to Search Record by Name This C program will take the name of student to search in the binary file. How  To Search a Record By Name in File...

## Convert mm millimeter to inches

This is a simple basic C program. it takes input from user at run time. The user enters the value of mm millimeters. These millimeters are then converted into inches by using the following formula: How to convert mm...

## Java Program To Input a Number and Display Its Square

Write a Java Program To Input a Number and Display Its Square. The sample run of the required Java program is shown in the image below: For getting input in a Java program, we may use the Scanner class. Please...

## Write and Execute First Java Program in NetBeans

Note: In this Simple Java Tutorial we will assume that you have already downloaded and installed Java Development Kit JDK and Net Beans 8.1 IDE or higher. Short Steps: Step 1: Start Net Beans IDEStep 2: Now you...

## Capture Screenshot of Website from URL using PHP

In this post, we gonna write a simple PHP script to grab the given website URL screenshot. There are many solutions to capture screenshots of Web pages. Using the Google Page Speed API is often better because internally...