Without system software, system can not run on the other hand without application software, system always runs
Answer:
An advantage to Corporations aI's a business organization is that they enjoy unlimited life and limited liability.
Explanation:
Unlimited life and limited liability are the major advantages of corporations.
Corporations have unlimited life unless all the shareholders decides to dissolve the corporation.
It has limited liability, it means that only the company assets will be sold in case of debt and investors are not liable to pay the debt.
Answer:
public class Digits
{
public static boolean allDigitsOdd(int num)
{
boolean flag=true;
int rem;
while(num>0)
{
rem=num%10;
num=num/10;
if(rem%2==0) // if a even digit found immediately breaks out of loop
{
flag=false;
break;
}
}
return flag; //returns result
}
public static void main(String args[])
{
System.out.println(allDigitsOdd(1375)); //returns true as all are odd digits
}
}
OUTPUT :
true
Explanation:
Above program has 2 static methods inside a class Digits. Logic behind above function is that a number is divided by 10 until it is less than 0. Each time its remainder by 0 is checked if even immediately breaks out of the loop.