In previous post we learnt how to print Sum of given array elements. In this post we will learn how to print multiplication of given array elements.
Java Program to Print Sum of given Array Elements
In previous post we learnt how to check given element is present in array or not. In this post we will learn how to print sum of given array elements. So let's get started... :)
Step by step logic of the given program:
1. Accept array limit from user store it in variable say lim.
2. Accept elements from user. Run a for loop from 0 to arr.length-1 and store elements one by one in array:
Java Program to Check whether Given Element is Present in Array or not
In previous tutorial we learnt how to accept and print array elements. In this post we will learn is given element is present in array or not, Java program to check whether given element is present in array or not.
Factorial Program In Java
Factorial Program in Java:
Program to Print Factorial of a given number:
Fibonacci Series Program In Java
Fibonacci Series In Java:
Java program to calculate gross salary of an employee
Ex: Write a java program to calculate gross salary of an employee. How to write a java program to calculate gross salary of an employee using DA and HRA. Java program to calculate gross salary of an employee using DA and HRA.
We can calculate gross salary of an employee using following DA and HRA. The DA is 20% of the basic salary while the HRA is 30% of the basic salary and gross salary is addition of basic salary, DA and HRA.
Java Program to check Given Number is Prime or not
EX: Write a Java Program to check given number is prime or not.
What is prime number?
Prime number is a number that is greater than 1 and divided by 1 and itself only.Java Program to check Given Number is Palindrome or not
EX: Write a java program to check given number is palindrome or not. How to write a java program to check palindrome number.
What is Palindrome Number?
Basic Java Programming Examples and Solutions
In previous post we learnt what is java programming or introduction of java programming, In this article you will learn basic of java programming with lot of java programming exercises, examples and their solutions.
Top Programming Interview Questions in C
In this article I will share some most commonly asked interview questions for you.
There are lot of computer science students, engineering students and programmers applying for interview to get job and start their career in software industries.
There are many big companies like Microsoft, Google, Amazon, Facebook and many other big organizations hires new software developers and programmers every year.