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
Sauron [17]
3 years ago
12

JAVA

Computers and Technology
1 answer:
Umnica [9.8K]3 years ago
5 0

import java.util.Scanner;

public class JavaApplication58 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter a positive integer:");

       String num = scan.nextLine();

       for (int i = num.length()-1; i >=0; i--){

           System.out.println(num.charAt(i));

       }

       

   }

   

}

I hope this helps!

You might be interested in
What are examples of people who own the copyrights of their property? Check all that apply.
jolli1 [7]
"Nevaeh thinks of a name for her new company", "Alexis thinks of an idea for a new product" and "Josiah writes a poem" are open to copyright because they can claim that their work is original and cannot be reproduced without their consent. 
3 0
4 years ago
Read 2 more answers
Define a function below called increase_elements_by_x, which takes two arguments - a list of numbers and a single positive numbe
zubka84 [21]

Answer:

function

increase_elements_by_x (list, x)

{

 var tplist = [];

 for (i = 0; i < list.length; i++)

   {

     tplist[i] = list[i] + x;

   print (tplist[i])}

 return tplist;

}

var list =[1, 3, 5];

var copyList;

var x = 3;

copyList = increase_elements_by_x (list, x);

print (copyList);

Explanation:

Create a list named list with initial data 1,3,5.

Create a function name increase_elements_by_x  which takes list and number as argument.Create empty list tplist. Loop through list, for ever index add x to list[index] and save to an empty list tplist. After loop is exited return tplist.

create a variable copylist and set it to increase_elements_by_x. Value returned by increase_elements_by_x  will be saved in copylist. print copy list to see content of copy list.

5 0
4 years ago
Mention three types of pipeline hazards​
kaheart [24]

Answer:

Structural Hazards.

Data Hazards.  

Control Hazards.

Explanation:

7 0
3 years ago
Read 2 more answers
What is one of the first power tools you’ll need as electrician
Svetlanka [38]

I'd say a drill and a flashlight

7 0
3 years ago
Question #4
zzz [600]

Answer: You could use the path (2)

Explanation:

It is not necessary for the file to be in the same folder

You can use the relative path to a sub-folder

Backward Slashes are not necessary for windows. (you could also use forward slashes)

The full path is not necessary if the file is in the same folder.

6 0
3 years ago
Other questions:
  • Approximately what percent of desktop PCs are used for work-related purposes?
    13·2 answers
  • Write a program thattakes a number x and its exponent y from the user and thencalculate the result
    10·1 answer
  • Once sales are​ forecasted, ________ must be generated to estimate required raw materials. A. a pro forma statement B. a product
    8·1 answer
  • Lin is booting up his computer, and during the boot process, the computer powers down. After several unsuccessful attempts to bo
    12·1 answer
  • Which three skills are useful for success in any career?
    8·1 answer
  • What the best option if you cant show your PowerPoint presentation at all
    6·2 answers
  • Refer to the exhibit. One end of the cable is terminated as displayed, and the other end is terminated in accordance with the T5
    7·1 answer
  • If you have a 99% and you got a 50 on a test what is the grade please I will give brainless
    7·2 answers
  • HEPME <br> ZOOM<br> IN <br> STOP<br> GIVIJG<br> ME <br> LINKS <br> !!
    9·1 answer
  • Help with Java, please!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!