Answer:
Java program explained below
Explanation:
FindSpecialNumber.java
import java.util.Scanner;
public class FindSpecialNumber {
public static void main(String[] args) {
//Declaring variable
int number;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
//getting the input entered by the user
System.out.print("Enter a number :");
number = sc.nextInt();
/* Based on user entered number
* check whether it is special number or not
*/
if (number == -99 || number == 0 || number == 44) {
System.out.println("Special Number");
} else {
System.out.println("Not Special Number");
}
}
}
_______________
Output#1:
Enter a number :-99
Special Number
Output#2:
Enter a number :49
Not Special Number