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
sesenic [268]
3 years ago
12

Write code that prints: Ready! firstNumber ... 2 1 Run!

Computers and Technology
1 answer:
motikmotik3 years ago
3 0

Answer:

The program to this question can be defined as follows:

Program:

num=int(input("Enter any number: ")) #defining variable num, that take value from user

val=0; #defining variable val

for i in range(num): #defining loop to calculate value in decreasing order

   val=num-i; #holding value in variable

   print(val) #print value

Output:

Enter any number: 3

3

2

1

Explanation:

In the above-given code, a variable "num" is declared, that uses input function to take value from the user end, in the next line a "val" variable is defined, that calculates values and print it in decreasing order.

  • In the next step, a for loop is declared, inside the loop a "val" variable uses num and loop variable "i" to calculate the value in decreasing order.
  • In the last print method is used that prints "val" variable value.
You might be interested in
Whats 12/29 divided by 12/34
Mnenie [13.5K]

Answer:34/29 or 1.172413793

8 0
3 years ago
Read 2 more answers
You tell me if I only have middle school education then why do I have a 34 thousand dollar student loan bill?
motikmotik

Answer:

Explanation:

The number one thing that comes to my mind would be identity theft.

3 0
4 years ago
Write a loop that continually asks the user what pets the user has until the user enters stop, in which case the loop ends. It s
Nataliya [291]

Answer:

int counter = 0;
String userInput = "";
while (userInput != "stop") {
print "What pet do you have? ";
userInput = readInputLine();
if (userInput != "stop" ){
counter = counter + 1;
print "\nYou have one ";
print userInput;
print ". Total # of Pets: ";
print counter;
}
}

Explanation:

not sure what programming language you use, therefore the answer is pseudocode but it should give you an idea how to implement a piece of code for this problem.
Also, from the way you described the exercise I'm not sure if you always are supposed to reply with "you have one" + the pet or if you should count how often the same pet was entered.

6 0
1 year ago
Describe in a step by step algorithm, what you want your blinking pattern to be.
Mashcka [7]

Answer:

I would want my blinking pattern to be red first, followed by green, yellow, orange, white, purple, and cyan.

Explanation:

5 0
3 years ago
Read 2 more answers
If y varies inversely as x, and y =23 when x=8, find y when x=4 .
LiRa [457]
I think u just divide y by two cuz the x value was divided by two
3 0
3 years ago
Other questions:
  • Can any existing directory beneath the system root directory be used as a mount point?
    9·1 answer
  • A cover letter is written directly to (a) _____.
    13·1 answer
  • ________ is a mobile broadband technology that relies on microwave transmissions to blanket large metropolitan areas from microw
    11·1 answer
  • As in algebra, you can use brackets to override the order of operations Excel follows to perform formula calculations. True or f
    13·1 answer
  • Which one of the following UNIX utilities is purpose-built to quickly return the location (filepath) of files by querying a data
    15·1 answer
  • To enter new code that performs as intended in the place of the old code that produces an error is the goal of
    9·1 answer
  • How do you award a brainliest
    8·2 answers
  • Discuss the technologies that implements an infrastructure for component communication
    7·1 answer
  • I WILL GIVE MOST BRAINLY
    13·1 answer
  • What is the difference between business strategies and business models?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!