Answer:
3
Explanation:
The function floor() is used to give the integer which is smaller than or equal to the provided decimal value.
for example:
let a=5.8
floor(a);
the function provides the value 5 (smaller than or equal to 5.8).
In the given code:
variable num assigns the number 3.14.
then, floor(3.14) gives the value 3 (smaller than or equal to 3.14).
then, the echo print the value on the screen.
Therefore, the correct answer is 3.
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter two integer numbers");
int num1 = in.nextInt();
int num2 = in.nextInt();
int newSum=num1+10;
System.out.println("The first number is "+num1);
do{
System.out.println(newSum);
newSum +=10;
}while (newSum <=num2);
}
}
Explanation:
Using Java Programming language
- Prompt user for the two inputs and save them as num1 and num2(Using the scanner class)
- Create a new Variable newSum = num1+10
- Create a do...while loop to continually print the value of newSum, and increment it by 10 while it is less or equal to num2
The two <span>statements that give good definitions of financial credit are : 1) Balance Sheet & 2) Income Statement.
</span>
1) Balance sheet shows the assets, liabilities, and net worth on a
given date;
2) Income statement (profit & loss account), shows how the net income of
the firm is arrived at over a stated period.
Another statement is Cash flow statement, which shows the inflows and outflows of cash caused by the firm's activities during a given period of time.