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
Naddik [55]
3 years ago
14

Demonstrate how to write each condition as an if-else in Java. If yes, then the computer should print “The answer is A,” “The an

swer is B,” or “The answer is C.” Otherwise, the computer should print “The answer is not here.”
Condition: variable choice is A, B, or C.


(You must actually give a answer to the question. If your answer is A B or C then im removing your answer and flagging it.
Computers and Technology
1 answer:
konstantin123 [22]3 years ago
4 0

\tt x=(float(input("Enter\;your\:answer")))

\tt if\:x=A:

\qquad\tt print("The\:answer\:is\:A")

\tt elif\::

\tt x=B;

\qquad\tt print("The\:answer\:is\:B")

\tt x=C;

\qquad\tt print("The\:answer\:is\:C")

\tt else\::

\qquad\tt print("The\:answer\:is\:not\:here")

You might be interested in
Give me 5 examples of Cyber Security
Vera_Pavlovna [14]

Answer:

Firewalls, Antiviruses, Malware, Antispyware,

Explanation:

8 0
3 years ago
What does the proofreading mark "..." mean?
scZoUnD [109]

Answer:

I believe "..." means that you need to go further in depth with your writing.

3 0
3 years ago
Read 2 more answers
Get the user to enter some text and print it out in reverse order.
svetlana [45]

Answer:

strrev in c/c++

Explanation:

3 0
2 years ago
Convert ⅖ pie radian to degree​
aniked [119]

Answer:

Convert to a decimal.

22.9183118°

Explanation:

7 0
3 years ago
What came after the Phonograph
Andre45 [30]

Answer:

Gramophone

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Where does the oracle11g server store information about objects in the database, including information about constraints?
    15·1 answer
  • In this digital age of rapid communications, how can you justify the time it takes to stop and revise a message
    10·1 answer
  • The device used to connect a network to the internet is called a
    7·1 answer
  • When you are working in Performance Monitor, in the "Add Counters" dialog box, and need more information about a particular coun
    8·1 answer
  • Many digital libraries have much more information than traditional libraries
    13·1 answer
  • PLSSSSS HELPP!! Tropical rainforests are home to many kinds of birds, including parrots, toucans and eagles. Each different spec
    9·2 answers
  • To specify your preferred colors, fonts, and effects for a document, which of the following should be done?
    9·2 answers
  • What is the full form of EPROM (CLASS-6)
    6·2 answers
  • What is the scope of each variable?
    11·2 answers
  • Which type of computer serves as the heart of the computing systems for many, perhaps most, major corporations and government ag
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!