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
AlladinOne [14]
3 years ago
11

What is the output of this program?

Computers and Technology
1 answer:
irinina [24]3 years ago
8 0

Answer:

Output: yes

Explanation:

First if statement is satisfied, since numA==2, so yes is printed.

The elif statement is skipped altogether, since elif statements are only evaluated, when the statement above if false, which it is not.

You might be interested in
Print "Censored" if userInput contains the word "darn", else print userInput. End with newline. Ex: If userInput is "That darn c
Alisiya [41]

Answer:

The Java code is given below

Explanation:

import java.util.*;

public class CensoredWords {

public static void main(String args[]) {

Scanner scnr=new Scanner(System.in);

String userInput;

System.out.println("Enter String: ");

userInput=scnr.nextLine();

int res=userInput.indexOf("darn");

if(res == - 1) {

System.out.println(userInput);

} else {

System.out.println("Censored");

}

}

}

8 0
3 years ago
Definition of firewall
miv72 [106K]
A partition made of fireproof material to prevent the spread of a fire from one part of a building or ship to another or to isolate an engine compartment, as on a plane, automobile, etc.
3 0
2 years ago
Read 2 more answers
Nano,Shuffle,Classic and Touch are variations of what?
dlinn [17]
They are variations of iPad
7 0
3 years ago
2. What are some other reasons why you might need to know the operating system version on your computer or mobile device
mote1985 [20]
1. To check compatibility of an app/ software
2. To know the vulnerabilities
3. To be aware of available system updates
Hope that helps
7 0
2 years ago
Jame
Sophie [7]

Answer:

Did you just copy this from a texbook?

Explanation:

7 0
3 years ago
Other questions:
  • The mass of a textbook is about 1.25 kilograms. Aproximately, how many ounces is this?
    10·1 answer
  • What is data called that is input into a cryptographic algorithm for the purpose of producing encrypted data?
    14·1 answer
  • Which headphone is better for music
    7·1 answer
  • ____ technologies support digital transmission for both voice and data
    12·1 answer
  • Which track-type can be used to control the master output levels of output and bus paths? Hint: When assigned to an active outpu
    10·1 answer
  • A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your f
    8·1 answer
  • Write any three type of looping structure with syntax​
    13·1 answer
  • The Ingenuity and the MOXIE are two new pieces of technology on the Perseverance. What role will these instruments play? How wil
    6·2 answers
  • 5 efectos del desarrollo tecnológico en el medio ambiente
    14·1 answer
  • A column does not consist of
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!