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
Which set of cisco ios commands instructs the ips to compile a signature category named ios_ips into memory and use it to scan t
rusak2 [61]

A set of Cisco IOS commands that instructs the IPS to compile a signature category with the name IOS_IPS into memory are listed below.

<h3>What is a command?</h3>

A command can be defined as the set of instructions that is used to configure a network device such as a router, so as to make it active on a computer network and enable it perform certain tasks automatically during network communication.

In this scenario, a set of Cisco IOS commands that can be used to instruct the IPS in compiling a signature category with the name IOS_IPS into memory and use it to scan network traffic include the following:

  • R1(config)# IP IPS signature-category.
  • R1(config-ips-category)# category IOS_IPS basic.
  • R1(config-ips-category-action)# retired false.

Read more on commands here: brainly.com/question/17147683

#SPJ12

5 0
2 years ago
What is the difference between the web and the internet?
Naddika [18.5K]
The Web is just one of the ways that information can be disseminated over the Internet
4 0
3 years ago
this is on an iPad, I just had my hidden photos in my album somewhere and I wanted to unhide them and once I pressed Unhide I co
emmasim [6.3K]

Answer:

View hidden pictures on Mac

If you do not see the Hidden folder under Library in the Photos app on Mac, click View > Show Hidden Photo Album from the menu bar. The album will then appear in your Library on the left.

View hidden pictures on iPhone and iPad

When you’re ready to see those photos, you can view and unhide them if you like.

1.Tap Albums in the Photos

2.Scroll to the bottom under Other Albums and tap Hidden.

3.If you want to unhide a photo, select it, tap the Sharing button, and pick Unhide.

Hope this helps...!

Explanation:

5 0
3 years ago
2) Please create a C program for the following: (25 points) a. Suppose the US dollar to Korean Won is 0.85 dollars to 1000 won.
Zanzabum

Answer:

In C:

#include <stdio.h>

int main(){

       float won,usd,rupee,dinar,peso;

       printf("Won: ");

       scanf("%f", &won);

       usd = won * 0.85/1000;

       rupee = won * 0.85 * 0.14/1000;

       dinar = won * 0.85 * 0.048/1000;

       peso = won * 0.85 * 1.41/1000;

       printf("USD = %f\n", usd);

       printf("Rupee = %f\n", rupee);

       printf("Dinar = %f\n", dinar);

       printf("Peso = %f\n", peso);

   return 0;

}

Explanation:

This declares all variables as float

float won,usd,rupee,dinar,peso;

This prompts the user for Korean Won

       printf("Won: ");

This gets the input for won

       scanf("%f", &won);

This converts to usd

       usd = won * 0.85/1000;

This converts to rupee

       rupee = won * 0.85 * 0.14/1000;

This converts to dinar

       dinar = won * 0.85 * 0.048/1000;

This converts to peso

       peso = won * 0.85 * 1.41/1000;

The next four lines print the converted currencies

       printf("USD = %f\n", usd);

       printf("Rupee = %f\n", rupee);

       printf("Dinar = %f\n", dinar);

       printf("Peso = %f\n", peso);

3 0
3 years ago
Please disable any script/ad-blocking services for best user experience.
insens350 [35]
Wdym? im sorry that this answer is not helpful, im just wondering what you mean

5 0
3 years ago
Other questions:
  • Janice has a "jammed" key on her keyboard. Every time she strikes the "S" key it sticks and doesn't pop back. What should Janice
    6·2 answers
  • A document may wordwrap differently depending on the type of printer being used.
    8·1 answer
  • Do you think children should have their own mobile phones? Why or why not?
    10·2 answers
  • Web and mobile applications are created for users to only read information. True False
    15·2 answers
  • c++ 2.30 LAB: Phone number breakdown Given a long long integer representing a 10-digit phone number, output the area code, prefi
    10·1 answer
  • Which option ie an example of an html end tag
    15·1 answer
  • Assume that you have been hired by a small veterinary practice to help them prepare a contingency planning document. The practic
    9·1 answer
  • When a Select Case statement executes, the value of the test expression is compared with the values that follow each of the ____
    7·1 answer
  • How would you identify communication equipment?
    10·1 answer
  • There are many different computer peripherals that are available to optimize your computing system’s specific needs. A graphic d
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!