1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alexgriva [62]
3 years ago
11

import java.util.Scanner; public class FindSpecialValue { public static void main (String [] args) { Scanner scnr = new Scanner(

System.in); int specialNum; specialNum = scnr.nextInt(); if (specialNum ) { System.out.println("Special number"); } else { System.out.println("Not special number"); } }
Engineering
1 answer:
Hitman42 [59]3 years ago
7 0

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

You might be interested in
A room has a width of 14.1 feet, a length of 15.5 feet, and a ceiling height of 12.0 ft. The average flow rate for this room's a
prohojiy [21]

Answer:

Your question lacks the time required hence i will calculate the Average flow rate using a general concept and an assumed time value of 25 seconds  

ANSWER : 104.904 ft^3/sec

Explanation:

General concept : Average flow rate is the volume of fluid per unit time through an area

Hence the average flow rate of the air conditioning unit of this room

Volume of the room / time taken for the air to cycle the room = v / t

assuming the time taken = 25 seconds

volume of room = width * length * height

                          = 14.1 * 15.5 * 12 = 2622.6 ft^3

Average flow rate = V/ t

                              = 2622.6 / 25  = 104.904 ft^3/sec

8 0
3 years ago
Viscous effects are negligible outside of the hydrodynamic boundary layer. (3 points) a. True b. False
Valentin [98]

Answer:

I would say false but I am not for sure

8 0
3 years ago
What do you push to answer a question in Brainly?
ahrayia [7]

you click the question then it says answer question then u answer it

4 0
2 years ago
Read 2 more answers
EnQueue(X): Thêm phần tử X vào Queue
irina [24]
Yes that is right no matter what you are talking about I’m not sure tho
6 0
3 years ago
Why was Copernicus’s heliocentric model not believed until Galileo and Kepler provided more evidence?
Anna [14]

Answer:

The model was against religous teachings.

Explanation:

3 0
3 years ago
Other questions:
  • Base course aggregate has a target dry density of 119.7 Ib/cu ft in place. It will be laid down and compacted in a rectangular s
    5·1 answer
  • You are given a body with no body forces and told that the stress state is given as: ⎡ ⎣ 3αx 5βx2 + αy γz3 5βx2 + αy βx2 0 γz3 0
    8·1 answer
  • 1. Implement the k-means clustering algorithm either in Java or Python. • The program should be executable with at least 3 param
    12·1 answer
  • When fermentation units are operated with high aeration rates, significant amounts of water can be evaporated into the air passi
    13·1 answer
  • What is cooking with a fossil fuel? What is a fossil fuel?
    7·1 answer
  • The basic barometer can be used to measure the height of a building. If the barometric readings at the top and the bottom of a b
    15·1 answer
  • Please help me with this, picture.
    15·1 answer
  • The speed of sound in a fluid can be calculated using the following equation:
    6·1 answer
  • Tech A says that full floating pistons use keepers to retain the piston pin. Tech B says that some piston pins are press fitted
    8·1 answer
  • HELP PLEASE ! TYYYY!!!!!!!!!!!!!!!!!!!!!!!!
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!