Question: write in Java programming please also take a screenshot of your work please use IJ Application F. sky number Description Given a 4 digits number,
F. sky number Description Given a 4 digits number, for example the decimal 2992=2+9+9+2=22, its hexadecimal BBO=B+B+0=22, and also its duodecimal 1894=1+8+9+4=22. Such a number is called Sky Input The integer at the first line is the number of testing data followed Output If the input number n is sky, print #n is a Sky Number", otherwise print "#n is not a Sky Number" Examples input W 2 2992 1234 output 2992 is a Sky Number. 1234 is not a Sky Number. Wenzhou University OJ 2021 English
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
