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
Triss [41]
3 years ago
6

Write code that prints: Ready! userNum ... 2 1 Go! Your code should contain a for loop. Print a newline after each number and af

ter each line of text. Ex: If the input is: 3 the output is: Ready! 3 2 1 Go!
Computers and Technology
1 answer:
Vinvika [58]3 years ago
8 0

Answer:

Kindly find the code snippet in the explanation written in kotlin language

Explanation:

fun main(args: Array<String>) {

   var num:Int

   println("Enter a num")

    num= Integer.valueOf(readLine())

   for(i in num downTo 1){

       if(i==num){

           print("Ready!")

           print(" ")

       }

       print(i)

       print(" ")

       if(i==1){

           print(" ")

           print("Go!")

       }

   }

}

This function too can also work

fun numTo(num:Int){

   if (num>0) for(i in num downTo 1) print("$i ")

   println("Go!")

You might be interested in
A cookie recipe calls for the following ingredients:
Romashka [77]

def cookie_Recipe(recipe):

   

   sugar=(0.03125*recipe)

   butter=(0.02083333333*recipe)

   flour=(0.05729166666*recipe)

   LF1=round(sugar, 2)

   LF2=round(butter,2)

   LF3=round(flour, 2)

   print("You will need:")

   print(LF1, "cups of sugar")

   print(LF2, "cups of butter")

   print(LF3, "cups of flour")

   print("To make", recipe, 'cookies')

recipe=int(input("How many cookies do you want to make?\n"))

cookie_Recipe(recipe)

4 0
3 years ago
Why is it important that software be compatible with your operating system? What kind of complications may occur if the two are
Svetllana [295]

Answer:

it is important for software to be compatible with your operating system so that you can use the software you acquired. The complications you may encounter if your software is not compatible with your operating system would be error codes, money wasted, and/or possible system changed that you do not want to change since it wouldn't be appropriate for your operating system.

Explanation:

Incompatible software is not something you should use with your operating system.

4 0
3 years ago
A small program that is designed to simplify a complicated task is a _____. filter wizard link data entry form
Minchanka [31]
The answer is a wizard, in computer software. 
3 0
3 years ago
Read 2 more answers
What is the HTML code symbol to the !nstagram Facts Part 2?<br><br>FIRST ONE GETS BRAINEST!!
vredina [299]

¶^↑↓→← html code symbol

5 0
3 years ago
One of the main responsibilities employers have under OSHA is to?
sergey [27]
<span>One of the main responsiblities is to provide a workplace free from serious recognized hazards and comply with standards of the </span><span>OSH Act.


That's all I know, hope this helps...

</span>
8 0
3 years ago
Other questions:
  • Which statement describes the word "iterative"?
    7·2 answers
  • Jen wants to protect the schools network from hackers,worms,and viruses.she also wants to regulate access to certain websites th
    15·2 answers
  • Which of the following statements is TRUE?
    11·2 answers
  • Given a double variable named areaofsquare write the necessary code to read in a value , the area of some square, into areaofsqu
    9·1 answer
  • Please answer the following essay question:
    13·1 answer
  • Generally speaking, problems are rarely caused by motherboards. However, there are some instances in which a motherboard can fai
    12·1 answer
  • When an antivirus program identifies a virus and quarantines this file, has the malware been eradicated
    7·1 answer
  • Assume the user responds with a 3 for the first number and a 5 for the second number.
    13·1 answer
  • In disc brakes, pads are forced against the of a brake disc​
    14·1 answer
  • 5.23 LAB: Contains the character
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!