Computer Applications
Write a program in Java to display the first 10 terms of the following series:
10, 20, 30, 40, ……..
Java
Java Iterative Stmts
313 Likes
Answer
public class KboatSeries
{
public static void main(String args[]) {
for (int i = 10; i <= 100; i += 10) {
System.out.print(i + " ");
}
}
}Variable Description Table
Program Explanation
Output

Answered By
162 Likes
Related Questions
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 number
Sum of the digits – 1+2+1 = 4 which is an even numberRewrite the following do while program segment using for:
x = 10; y = 20; do { x++; y++; } while (x<=20); System.out.println(x * y );Which of the following are entry controlled loops?
(a) for
(b) while
(c) do..while
(d) switch
- only a
- a and b
- a and c
- c and d