This is a java program with a class called Sum1.
Explanation:
While loop is used to add 10 number.
import java.util.Scanner;
public class Sum 1
{
public static void main(String args[])
{
int number, count, sum = 0;
Scanner s = new Scanner(System.in);
System.out.print("Enter the number:");
number = s.nextInt();
while(number > 0)
{
count = number % 10;
sum = sum + n;
number = number / 10;
}
System.out.println("Sum of Digits:"+sum);
}
}
Answer:
Option A
Explanation:
SmartArt graphic are nothing but the visual representation of ideas or information by using layouts that fits the context of the presentation. These smart art graphics include - sequence diagram, venn diagram, organizational chart etc. These smart art are part of MS office programs i.e MS Word, MS Powerpoint, MS excel etc.
Hence, option A is correct
The formula for the relationship between real and nominal GDP is:
Real GDP = Nominal GDP / Deflator
Real GDP = 15 trillion / (1 + 0.35)
Real GDP = 11.1 trillion
The answer is A.
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.