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
Angelina_Jolie [31]
3 years ago
6

What will be the value of i after the C statements at the right have been executed

Computers and Technology
1 answer:
guajiro [1.7K]3 years ago
6 0

Answer:

8

Explanation:

By presuming the given codes as below:

  1.    int i = 3;  
  2.    int j = 10;
  3.    
  4.    if((3*i) < j)
  5.        i = i + 2;
  6.    
  7.    i = i+3;

Firstly, we have i equal to 3. When the i is multiplied with 3 and check if it is smaller than j in the if statement (Line 4), it will return true and there i is incremented by two (Line 5). At this point the i = 3 + 2 = 5

Next i is incremented again by three in Line 7. Hence the final value of i = 5 + 3 = 8

You might be interested in
You are asked to write a program that will display a letter that corresponds with a numeric rating system. The program should us
Mice21 [21]

Answer:

rate

Explanation:

6 0
3 years ago
what is the best paper choice for printing a book with 1000 pages A. Cover B. Text C. Index D. Newsprint​
Eva8 [605]

Answer:

B

Explanation:

Text is the best paper choice.

Have a great day

3 0
2 years ago
Gaming related
Blababa [14]

Answer:

yes affects your K/D

Explanation:

winner winner chicken dinner

please mark me please brainliest or mark thanks

5 0
2 years ago
Which of the following is not a type of bank? A.Credit Union B.Online Bank C.Payday Lender D.Retail Bank
Damm [24]
C. a payday lender is a type of loan
7 0
3 years ago
1. Of Facebook, Twitter, and LinkedIn, which do you think is the best platform for marketing your personal brand? Explain.
lord [1]
Facebook cuz a lot more people on Facebook to see your personal brand
3 0
3 years ago
Other questions:
  • Consider the following recursive method, which is intended to return a String with any consecutive duplicate characters removed.
    11·1 answer
  • Jake is photographing his pet puppy. He wants to preview the image the camera will capture. What part of the camera that is insi
    6·2 answers
  • When saving a memo you created in Word, which one of the following extensions is automatically assigned to the document?
    13·1 answer
  • A high-angle shot is the same thing as a bird’s-eye shot. True False
    11·2 answers
  • Which of the following is part of Connections Academy's AUP regarding the use of the school'supplied technology
    7·2 answers
  • Write an expression that computes the integer average of the int variables exam1 and exam2 (both declared and assigned values).
    15·1 answer
  • What are some of these new iPad extras? One is the iMarker. Crayola teamed up with another company to make it. It costs $29.99.
    8·1 answer
  • Why can videos be streamed from the cloud to a computer with no loss in
    5·2 answers
  • Tasks you can perform online include which of the following?
    13·1 answer
  • Assignment 1:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!