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
bonufazy [111]
3 years ago
14

I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the

number i typed, "3".

Computers and Technology
1 answer:
sweet-ann [11.9K]3 years ago
3 0

You're substracting one from the variable "exponent" with every iteration of the loop, and you told it to break out of the loop once "exponent" is 0, therefore, it's always going to end up as 0 at the end.


If you want to keep the input from the user, then declare another variable like "counter" and assign the value of "exponent" to it and use it for the loop


Or even better, do this for the loop:

for(int i = 0; i < exponent; i++)

{

//Code here

}

You might be interested in
Match the partition type to its description.
zlopas [31]

Answer:

A partition with an extended partition is a logical partition.

The partition with the boot loader is the system partition.

The section of the hard drive where you will install the operating system is the primary partition.

Read more on Brainly.com - brainly.com/question/14356373#readmore

Explanation:

7 0
3 years ago
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query.
blagie [28]
The correct answer to this question is A. One level or record an be returned in a single query when a developer writes a SOQL query to find child records for a specific parent.
4 0
3 years ago
Pls help asap<br> 40 pts<br><br> How to determine the audience for a storyboard for a movie review?
Alecsey [184]
Look at the subject of the movie, think about the type of people that would watch that, gore/blood- boy teens sad/depressing- girl teens
8 0
3 years ago
You replaced the LCD panel in a laptop computer and verified full system functionality, including wireless connectivity. The cus
Degger [83]

Answer:

There was a mistake in the question. The question included a possible answer. I agreed with the answer given and provide an explanation why I agreed with the answer given.

ANSWER: The laptop's wireless radio is toggled to the off position

Explanation:

Since the laptop technician has verified full system functionality before the customer picked up the item then the problem is likely a setting issue. For the technician to test the wireless connectivity and was satisfied, it means the wireless LAN card was installed and the antennas are working to verify there are no hardware issues. The correct device driver must have been installed as well. Since other users can connect to the WAP it means it is not an external problem. All that is left to check is if the wireless radio is ON or OFF. The customer must have mistakenly toggled the wireless radio OFF and he needs to turn it on in other to connect to the Wireless Access Point.

3 0
3 years ago
An example for Shareware?
Kryger [21]
A software that is free of cost for a certain amount of time such as Adobe programs, or Winzip.
6 0
2 years ago
Read 2 more answers
Other questions:
  • What does the Sort feature do with a database
    13·1 answer
  • Which two statements about using leased lines for your wan infrastructure are true? (?
    14·1 answer
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    12·2 answers
  • Explain how can we determine that where is the strength of magnetic force maximum in a
    13·1 answer
  • The business case for using grid computing involves all of the following except: speed of computation. cost savings. agility. in
    5·1 answer
  • What does %d, , %c, %s mean and what's their difference?
    12·1 answer
  • Which of the following is NOT an argument used to determine how a shot is fired from an A. object the shot itself being instanti
    12·1 answer
  • Write a C program to calculate and display the coordinates of midpoint - M of a linesegment between two given points - say A and
    7·1 answer
  • If a program compiles fine, but it produces an incorrect result, then the program suffers from _______________.
    11·1 answer
  • How can you create a messages to look like an IMessage?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!