Examlex

Solved

Assuming That a User Enters 45, 78, and Then 12

question 45

Multiple Choice

Assuming that a user enters 45, 78, and then 12, what is the output of the following code snippet?
Int num1 = 0;
Int num2 = 0;
Int num3 = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
Num1 = in.nextInt() ;
System.out.print("Enter a number: ") ;
Num2 = in.nextInt() ;
System.out.print("Enter a number: ") ;
Num3 = in.nextInt() ;
If (!(num1 > num2 && num1 > num3) )
{
System.out.println(num1) ;
}
Else if (!(num2 > num1 && num2 > num3) )
{
System.out.println(num2) ;
}
Else if (!(num3 > num1 && num3 > num2) )
{
System.out.println(num3) ;
}


Definitions:

Maturity

The date on which the principal amount of a loan, bond, or other financial instrument becomes due and payable.

Selling

The process of persuading a customer to buy a product or service.

Current Yield

The annual income (interest or dividends) received from an investment divided by the current price of the security.

Coupon

The interest rate on a bond paid by the issuer to the bondholder, typically on a periodic basis.

Related Questions