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...
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...
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) {...
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...
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)...
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...
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...
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...
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...
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...
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...
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...