Answer:
import java.util.Scanner;
public class num2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int total = 0;
for(int i=0; i<5; i++){
System.out.println("Enter next Int: ");
total = total+in.nextInt();
}
System.out.println(total);
}
}
Explanation:
In the code above written in Java programming language, the for loop statement for(int i=0; i<5; i++) ensures that the loop goes from 0-4 a total of five times.
At each iteration it requests a user to enter an int. The number entered is stored in the variable total which is initially assigned 0.
When the loop finishes execution, total is printed out
Answer: You sort table data with commands that are displayed when you click a header arrow button. Hope it help's :D
<span>The Huns were a formidable force to fight. They were able to eat most food without problem which removes the needs for supply trains and such and encourages pillaging. Another reason is that their a cavalry based army which completely decimated roman military since the roman empire consist of flat land and they could outflank, outrun, and could whittle down an army with ease. They also are nomads which means you don't know where they're living and so you can't be on the attack which also gave an advantage. This points that the Huns are a force to be reckon with.</span>
Answer: (c) A file stream object can be used to open more than one file simultaneously.
Explanation: File stream is application that is found on desktop that helps in accessing the files on demand and requirement of the Google Drive. The files team can access direction and updating takes place automatically.
It also helps in the accessing one or more files in a series through individual file stream object. After all the accessing and activities file gets closed as well and the updates gets save automatically.
Other options are incorrect because accessing the file for reading or writing requires file name mandatory and single object can open a file but cannot be used for writing and reading.Thus ,the correct options are option(c) .
Answer:
'='
Explanation:
The equal ('=') is the character that is used to assign the value in the programming.
In the programming, there is a lot of character which has different meaning and uses for a different purpose.
like '==' it is used for checking equality between the Boolean.
'+' is a character that is used for adding.
'-' is a character that is used for subtraction.
similarly, '=' used for assigning.
for example:
a = a + b;
In the programming, the program evaluates the (a + b) first and then the result assigns to the variable.