The answer would be 2&5 because this is correct
A producer <span>forms the base of food webs</span>.
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:
A constructor doesn't have a return type.
The name of the constructor must be the same as the name of the class.
Unlike methods, constructors are not considered to be members of a class.
A constructor is called when a new instance of an object is created.
Explanation: