Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Specially Named Numbers


Exam Paper Problems

Pronic Number Check #7190

( As In Exam - ICSE2018 )

Write a program to input a number and check and print whether it is a Pronic

Write a program to input a number and check and print whether it is a Pronic number or not. (Pronic number is the number which is the product of two consecutive integers)
Examples: 12 = 3 x 4
20 = 4 x 5
42 = 6 x 7

Spy number check #7256

( As In Exam - ICSE2017 )

Write a program to accept a number and check and display whether it is a spy

Write a program to accept a number and check and display whether it is a spy number or not. (A number is spy if the sum of its digits equals the product of its digits.)
Example: consider the number 1124, Sum of the digits = 1 + 1 + 2 + 4 = 8
Product of the digits = 1 x 1 x 2 x 4 = 8



Exam Paper Problems:2 
Back