![anyawebb06](/avatars/47761.jpg)
anyawebb06
27.07.2019 •
History
How does the constitution separate government powers?
Solved
Show answers
More tips
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
Answers on questions: History
- H History Hahhahaahaahsupper hhajajja...
- M Mathematics Akey code must contain 6 numerals. there are 10 numerals available. using these numerals, how many different key codes may be created?...
- E English Modern poetry, fiction, and non fiction were influenced by what?...
- E English Why was Smith s speech important? A. Smith s speech was the first to publicly question McCarthy s accusations B. Smith s speech was one of the earliest to refer to...
- M Mathematics Micheal and Tracy are carpeting their family room that is 14 1/2 feet long and 12 1/4 feet wide. To find the amount of carpet needed micheal says to multiply 15 1/2...
Ответ:
Ответ:
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
}