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
Mademuasel [1]
4 years ago
6

What is output by the following program? int i = 7; while (i>=2){System.out.print (i +""); if ((i%3) == 0){ i +2; } else { i/

=2;}}
Computers and Technology
1 answer:
stiks02 [169]4 years ago
6 0

Answer:

The correct answer to this question is: "this program give an error".

int i = 7; //declare a variable(i) and assign value.

while (i>=2) //use loop and check condition.i greater then equal to 2.

{

System.out.print (i +""); //print value of i.

if ((i%3) == 0) //hold remainder

{

i +2; //error.

}

else

{

i/=2; //hold Quotient

}

}

Explanation:

In the above program, there is an error in the if block because it is not the correct way to declare. To use the variable from the correct output we use a variable like this.

Example

int i = 7;

//declare a variable(i) and assign value.

while (i>=2)

//use loop and check condition.i greater then equal to 2.

{

System.out.print (i +""); //print value of i.

if ((i%3) == 0) //hold remainder

{

i =i+2;

}

else

{

i/=2; //hold Quotient

}

}

Output: 732

You might be interested in
Universal Containers wants line items to be organized into pre-defined groups on the output document. The name of these pre-defi
Vsevolod [243]

Answer:

C. Set the Group Filed field on the Quote Template or Template Section records.

D. Set the New Quote Group field on each Product record with the associated group name.

Explanation:

There are two ways through administrator can organized into pre-defined groups on the output document and name of these pre-defined groups needs to be displayed above each group in the output to identify it.

Both of the ways are given in option "C" and "D".

1. We set the group field on the quote template to organize the groups in pre-defined order on the output.

2. We also set the New Quote Group field on each Product record with the associated group name to display the name on each group in the output to identify it.

6 0
4 years ago
Luis is cloud-based( microsoft bot framework). true false
zhenek [66]

True

Language Understanding Intelligence Service (LUIS) is a cloud-based API service and is one of the many Cognitive Services provided by Microsoft. LUIS applies custom machine-learning intelligence to a user’s natural language text to predict overall meaning and pull out detailed and relevant information. Using LUIS, we can use REST APIs to extract important information like phrases from any sentence.


5 0
4 years ago
Read 2 more answers
To rename a worksheet, you change the text on the ? HELP ASAP
prohojiy [21]
If this is Excel, it would be C. Sheet tab
5 0
3 years ago
Intellectual property piracy has gotten a small boost from the increasing availability of counterfeit goods through Internet cha
Aliun [14]

Answer:

The answer is "Option B".

Explanation:

Intellectual property is protected by law in which property, copyright, and trademarks, are uses, that enable you to gain individuals' popularity or personally benefit according to what they create.

  • It is a program that helps to create an environment, in which imagination and technology are used.
  • It will change the growth by striking a balance between innovator rights and wider public interest.
3 0
3 years ago
If you were practicing keyboarding and the excercise contained the letters q,o,e,p,r and t, what section of the keyboard are you
AfilCa [17]
Top row keys i belive sorry if im wrong

3 0
3 years ago
Other questions:
  • Can anyone help me with edhesive 4.2 Question 1 ???
    11·2 answers
  • 1 what elements of composition are under your control in photoshop
    13·1 answer
  • A network design engineer has been asked to design the IP addressing scheme for a customer network. The network will use IP addr
    6·1 answer
  • A.<br> Post-It note<br> b.<br> notebook<br> c.<br> tutor<br> d.<br> spell check
    14·1 answer
  • Professional photography is a competitive job field. <br> true <br> false
    12·2 answers
  • Determine and prove whether an argument in English is valid or invalid. About Prove whether each argument is valid or invalid. F
    5·1 answer
  • You have a folder on your Windows desktop system that you would like to share with members of your development team. Users need
    15·1 answer
  • QUESTION 16
    14·1 answer
  • What could be a pass word if the hint is stayton its for windows 10 <br><br> please help
    5·1 answer
  • Use the drop-down menus to complete the steps to convert a macro to VBA.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!