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:
Number 2 Polygonal lasso tool
Explanation:
The business case is better solved by artificial intelligence (ai) than conventional programming are:
- AI used for Industrial Operations such as the consistent Process Optimization to make better Product Quality
- AI is used in changing Advertising and Marketing such as in the Personalization works.
<h3>What is Artificial intelligence?</h3>
Artificial intelligence(AI) is a term that connote the ability of machines to be able to act or be like themselves or one that make human-like decisions so as to carry on tasks.
Hence, The business case is better solved by artificial intelligence (ai) than conventional programming are:
- AI used for Industrial Operations such as the consistent Process Optimization to make better Product Quality
- AI is used in changing Advertising and Marketing such as in the Personalization works.
Learn more about programming from
brainly.com/question/27959437
#SPJ1
Vertigo was the #1 movie of that time