ICSE practical sample paper 7
Input a number to check for palindrome number or Armstrong number. Design a program to create a class special having two functions, one as palin(int a) another as Armstrong(int b)
ICSE practical sample paper
ICSE sample paper
Input a number to check for palindrome number or Armstrong number. Design a program to create a class special having two functions, one as palin(int a) another as Armstrong(int b)
Example 1:
INPUT
Enter number
121
OUTPUT:
It is a palindrome number
Not an Armstrong number.
Example 2:
INPUT
Enter number
153
OUTPUT:
It is not a palindrome number
It is an Armstrong number.
- Design a program to print the following patterns
<tbody>
1
22
333
4444
55555
#####
$$$$
###
$$
#
</tbody>
- Design a program to create an array of integers, size should be entered by the user(between 5 to 20). And search a number by any search technique. If the value is not found then print relevant message.
Example 1:
INPUT
Enter number between 5 to 20
5
Enter numbers
1,2,3,5,8
Enter search number:
3
OUTPUT:
Number found at position 2
Example 2:
INPUT
Enter number between 5 to 20
8
Enter numbers
1,2,3,5,8, 13, 67
Enter search number:
67
OUTPUT:
Number found at position 6
Java videos
Related Posts
Continue learning with these related articles
Sum of First n Natural Numbers in Java (Loop and Formula)
Find the sum of the first n natural numbers in Java with a for loop, a while loop and the formula n(n + 1)/2, with a dry run and the sums of even numbers, odd numbers, squares and cubes.
Prime Number Program in Java: Check a Number and Print Primes in a Range
Check whether a number is prime in Java by counting its factors, a faster square-root method with isPrime(), and a program that prints all prime numbers in a range.

Encapsulation, Access Specifiers and Scope of Variables in Java for ICSE Class 10
ICSE Class 10 Computer Applications notes on encapsulation: private, default, protected and public access, data hiding with getter and setter methods, instance vs static (class) variables, local variables and scope, with a solved BankAccount program.