When two people give answer to your question, then below their answer you will get a option Mark as Brainliest. You simply need to click that button
Answer:
import java.util.*;
class Main
{
public static void main(String[] args)
{
System.out.println("Enter integers and 0 to exit");
Scanner a1=new Scanner(System.in);
System.out.println(add(a1));
}
public static int add(Scanner a1)
{
int total = a1.nextInt();
if (a1.hasNextInt())
{
total =total +add(a1);
}
return total;
}
}
Explanation:
The only thing that needs explanation here is hasnextInt. This returns true if entered number is integer and false if entered is not an integer. And rest is as shown in the program.
Ummmmmmmmmmmmmmmmmmmmm ok
Answer:
total=0;
for(k=1;k<=n;k++){
total+=k*k*k;
}
Just to clarify, the curly brackets are optional when only one operation is done by the loop.
Hope this helps!
Answer: C) DNS poisoning
Explanation: DNS poisoning or DNS cache poisoning is the type of attacking tendency towards the URL of the computer. These attempt to attack the URL using the spam mails and the user usually end up clicking on the URL provided by the attacker which invokes attack in the computer.
This mechanism takes place in the emails as well as the selected websites which can be accessed by the users easily.These attacks once enter the system seems like the real thing and become prone to many risks .