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
EastWind [94]
3 years ago
15

Write code that prints: Ready! firstNumber ... 2 1 Run! Your code should contain a for loop. Print a newline after each number a

nd after each line of text. Ex: If the input is: 3 the output is: Ready! 3 2 1 Run!
Computers and Technology
1 answer:
notsponge [240]3 years ago
8 0

Answer:

Explanation:

The following code is written in Java. It asks the user to enter the first number. Then it saves that number in a variable called firstNumber. It then uses that number to loop backwards from that number to 1 and goes printing out the countdown text. A test case has been created and the output can be seen in the attached image below.

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter First Number: ");

       int firstNumber = in.nextInt();

       System.out.println("Ready!");

       for (int i=firstNumber; i>0; i--) {

           System.out.println(i);

       }

       System.out.println("Run!");

   }

}

You might be interested in
Modify theme in excel
11111nata11111 [884]

Answer:

Explanation:

Theme may be explained as a group of different formatting options such as appearance, color, font size and so on, which could be applied on a workbook simultaneously (without having to manually format each change to the document one after the other.) Once a certain theme is selected, all formating options related to the theme is applied to the document. Themes are located in the page layout tab in excel. However, one can modify or edit each of the individual properties or options of a certain theme. Such that by the time, the theme modification would have been effected.

4 0
3 years ago
Select the correct answer from each drop-down menu.
mihalych1998 [28]

Answer:

i dont know

Explanation:

they block every thing for smoe reason

3 0
3 years ago
Write, compile, and execute a C program that calculates and returns the fourth root of the number 81.0, which is 3. (hint: The f
alex41 [277]

Answer:

   result=pow(value,0.25);

   printf("The 4th root is:%2.f",result);

Explanation:

In order to accomplish the task we need a library called math.h.

//4 root code

#include <stdio.h>

#include <math.h> //adding the library math.h

int main()

{  

   double value=81.0,root=0.25,result; //declaring the variables

   result=pow(value,root); //The function Pow will return the power raised to the base number

   printf("The 4th root is:%2.f",result); //print the result

   return 0;

}

3 0
3 years ago
10.13 lab 10c: output range with increment of 5 write a program whose input is two integers. output the first integer and subseq
Lynna [10]

he program gives an output in increment of 5, if the first inputted integer is less than the second. The program written in python 3 goes thus

3 0
2 years ago
What is nuclear family system​
KonstantinChe [14]

Answer:

A family unit consisting of a mother and father and their children. Nuclear family is defined as parents and their minor children who are living under one roof. An example of a nuclear family is a mom, dad and their kids.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which component of the Hyper-V architecture controls all communication with the physical hardware on the computer?
    8·1 answer
  • (The Location class) Design a class named Location for locating a maximal value and its location in a two-dimensional array. The
    10·1 answer
  • What is ATX full size motherboard? Tell its size as well?
    14·1 answer
  • Today when Dylan turned on his computer, he noticed that the monitor was very dim. He could still see the desktop icon and text.
    15·1 answer
  • Imagine you had a learning problem with an instance space of points on the plane and a target function that you knew took the fo
    11·1 answer
  • LensForAll is a company that sells affordable contact lenses on its website. The CEO of the company realizes that an app must be
    9·1 answer
  • Olivia wants to change some settings in Outlook. What are the steps she will use to get to that function? open Outlook → File →
    7·2 answers
  • Places where computer are used​
    11·2 answers
  • What is the difference between packaged and tailored software ​
    13·1 answer
  • Can anyone please give examples of pseudocode in programming? Thanks you very much!
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!