Answer:
// here is code in java.
import java.util.*;
// class definition
class Main
{
// method that return the digits of number
public static void dig(int num)
{
// while loop
while(num>0)
{
// print the digits
System.out.println(num%10);
num=num/10;
}
}
//driver method
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read input string
Scanner s=new Scanner(System.in);
// variable
int num;
System.out.print("please enter the number: ");
//read the number
num=s.nextInt();
// validate the input, read a positive number only
while(num<=0)
{
System.out.print("enter a positive number only:");
num=s.nextInt();
}
System.out.println("digit of number are:");
// call the function
dig(num);
}catch(Exception ex){
return;}
}
}
Explanation:
Read a number from user and assign it to variable "num".Check if it is positive or not.If input is negative then ask user to again enter a positive number till user enter a positive number.Then call the function with input number. In this method it will find the digits of the number in the while loop using modulus "%" operator.
Output:
please enter the number: -345
enter a positive number only:1234
digit of number are:
4
3
2
1
Answer:
I created a jsfiddle for this: https://jsfiddle.net/tonb/o7uv4cdm/26/
Explanation:
see jsfiddle.
The usual html and body tags are omitted for simplicity. For your stand-alone page you'll have to put them in, as well as additional tags for your inline scripting.
Sara should be concerned about security when setting up her loT lights.
<h3>What are loT lights?</h3>
loT light are otherwise called parking lot lights are outdoor lights that are placed on poles which are located on parking lots, pathways and driveways.
The loT light are used to provide bright light to the individuals so as to safely perform their various duties.
Therefore, Sara should be concerned about security when setting up her loT lights.
Learn more about security here:
brainly.com/question/25720881
When an optical drive becomes unavailable and even after replacing the drive there is a power issue then a multimeter must be used in this type of situation.
<h3>What is a multimeter?</h3>
A multimeter is an instrument that measures the resistance, voltage, and electric current over many ranges. It measures them in volts, ohms, and amps and is generally used by electricians.
The electrical properties are measured by the multimeter and checked for the continuity of the circuit, conductors, and the voltage supplied to the battery.
Therefore, a multimeter will solve the problem.
Learn more about multimeter here:
brainly.com/question/27858506
#SPJ1
John should use FTP Services.
For John to quickly transfer a large volume of data, he should have use FTP (File Transfer Protocol). FTP is the network protocol commonly used for exchanging files over the internet. There are a lot of software applications for file share transfer such as FileZilla and SmartFTP.