Write a program in Java to display the first 10 terms of the following series:
10, 20, 30, 40, ……..
336 Likes
public class KboatSeries { public static void main(String args[]) { for (int i = 10; i <= 100; i += 10) { System.out.print(i + " "); } } }
Answered By
168 Likes
Define a class to accept a number from user and check if it is an EvenPal number or not.
(The number is said to be EvenPal number when number is palindrome number (a number is palindrome if it is equal to its reverse) and sum of its digits is an even number.)
Example: 121 – is a palindrome numberSum of the digits – 1+2+1 = 4 which is an even number