Tutorial

Write a C Program to Generate the Fibonacci Series up to n Terms

In this tutorial learn how you can write a c program to generate the Fibonacci series up to n terms given by the user. The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …….. In mathematical terms, the sequence Fn of Fibonacci […]

Write a C Program to Generate the Fibonacci Series up to n Terms Read More »

Write a Java Program to Convert Double to Float

Write a Java Program to Convert Double to Float

In this tutorial learn how you can write a program to convert double to float in java. We use the Scanner class for user input and convert it to float. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Write a Program to Convert Double

Write a Java Program to Convert Double to Float Read More »

Write a Java Program to Convert String to Int

Write a Java Program to Convert String to Int

In this tutorial learn how you can write a program to convert String to int in java. Here we are using a class Integer.parseInt() and we will import “import java.lang.Integer;” and Scanner by “import java.util.Scanner;” Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Write

Write a Java Program to Convert String to Int Read More »

Write a Java Program to Remove All Whitespaces from the String

Write a Java Program to Remove All Whitespaces from the String

In this tutorial learn how you can write a program to remove all whitespaces from the String in java. We can use both float and double classes. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Write a Program to Remove All Whitespaces from the

Write a Java Program to Remove All Whitespaces from the String Read More »

Write a Java Program to Calculate the Square of a Number

Write a Java Program to Calculate the Square of a Number

In this tutorial learn how you can write a program to calculate the square of a number in java. We use the scanner class to get input from the user. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Write a Program to Calculate the

Write a Java Program to Calculate the Square of a Number Read More »

Write a Java Program to Find the Quotient and Remainder of Two Integers

Write a Java Program to Find the Quotient and Remainder of Two Integers

In this tutorial learn how you can write a program to find the quotient and remainder of two Integers in java. We use the Scanner class for taking inputs from the user and declaring variables dividend, divider, quotient, and the remainder to store the value. Java is a high-level, class-based, object-oriented programming language that is

Write a Java Program to Find the Quotient and Remainder of Two Integers Read More »

Write a Java Program to Multiply Two Floating Point Numbers

Write a Java Program to Multiply Two Floating-Point Numbers

In this tutorial learn how you can write a program to multiply two floating-point numbers in java. We can use both float and double classes. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Write a Program to Multiply Two Floating-Point Numbers in Java Here

Write a Java Program to Multiply Two Floating-Point Numbers Read More »

Write a Java Program to Print an Integer Entered by the User

Write a Java Program to Print an Integer Entered by the User

In this tutorial learn how you can print a program to print an integer entered by the user in java. Simply we will use the Scanner class of java from package java.util using code “import java.util.Scanner;”. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.

Write a Java Program to Print an Integer Entered by the User Read More »

Write a Java Program To Find Simple Interest

Write a Java Program To Find Simple Interest

In this tutorial learn how you can find simple interest in java. The formula to find simple interest is (P * T * R)/100. So we use Scanner to get data from user and simply use this formula. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies

Write a Java Program To Find Simple Interest Read More »