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
adelina 88 [10]
4 years ago
10

What will be displayed after the following statements execute? int funny = 7, serious = 15; funny = serious % 2; if (funny != 1)

{ funny = 0; serious = 0; } else if (funny == 2) { funny = 10; serious = 10; } else { funny = 1; serious = 1; } cout << funny << " " << serious << endl;
Computers and Technology
2 answers:
Reika [66]4 years ago
8 0

Answer:

1 1

Explanation:

First we have funny = 7 and serious = 15 .Then after that remainder when serious is divided by 2 is stored in funny that is 1.if condition will be false because funny is equal to 1.else if condition will also be false because it is not 2.So else will be executed and funny =1 and serious =1.

Output=1 1

alina1380 [7]4 years ago
6 0

Answer:

11

Explanation:

your welcome!

You might be interested in
I'm having an issue with a certain game. It is so laggy. It's not the game since other people are not having issues. The compute
Colt1911 [192]
Maybe delete some stuff sometimes when a game or other software acts like that that means you have too many apps
Or you can try updating the game
Or contact the creators of the game (usually by email) and maybe they can fix it :)

Hope this helps :)
6 0
3 years ago
Read 2 more answers
Write a program that reads an integer between o and 1000 and adds all the digits in the integer. For example, if an integer is 9
ale4655 [162]

Answer:

Answered below

Explanation:

#Program is written in Python programming language

digit = 0

sum = 0

num = int(input("Enter a number between 0 and 1000: ")

#Check that number is within the valid range

if num > 0 and num <= 1000:

while num != 0:

#Isolate each digit

digit = num % 10

sum = sum + digit

#Remove isolated digit from number

num = num/10

else:

print("Number is not within valid range")

#print total sum of digits

print(sum)

6 0
3 years ago
List three ways on how it's good to meet online and real life
nikitadnepr [17]

Answer:

Explanation:

How to meet people in real life

1. We can meet people if you go to your friend's party, is a great opportunity to meet friends from your friends.

2. We must go to events, in this case, if you like to read books, go to reading events.

3. We can use public transportation if you see someone reading your favorite book is the best opportunity.

How to meet people online

1. We can meet people in social media, but there are a lot of fake accounts, take care.

2. There are special platforms to meet people or to find love.

3. We could meet people on educational websites or apps, for example, if we want to learn Spanish, we can meet Spanish people.

3 0
3 years ago
Excel
raketka [301]
I think the correct answer from the choices listed above is option B. <span>Auto Fill options menu options is the same as the Fill Series option by the fact that it is also a fill without formatting. Hope this answers the question. Have a nice day. Feel free to ask more questions.</span>
8 0
3 years ago
Apply the fade transition with smoothly effect to all slides in the presentation​
Hunter-Best [27]

Answer:

12

Explanation:

its very long answer so that it is that

7 0
3 years ago
Other questions:
  • . When you have multiple graphics positioned on a page, you can _______________ them so that they are a single graphic instead o
    9·1 answer
  • What is the viewing of the physical world with computer-generated layers of information added to it?
    13·1 answer
  • Cloud computing is the fastest growing form of computing. <br> a. True <br> b. False
    9·1 answer
  • the header, in an academic report, typically contains the author’s name and the current page number true or false
    6·1 answer
  • When installing a network cable with multiple strands, a network technician pulled the cable past a sharp edge and exposes the c
    13·1 answer
  • Which of the following best describes the protocol used on the internet?
    8·1 answer
  • The ____ attribute can be used only with input boxes that store text. Group of answer choices type pattern required value
    9·1 answer
  • Kristi, an event planner, wants to store caterers’ names and contact information in an organized manner. Kristi will MOST LIKELY
    13·1 answer
  • "queries are questions", true or false?
    8·2 answers
  • Which of the following is NOT one of the three main ways to control a program when writing code?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!