Answer:
The correct code to the given question is
if ((counter % 10) == 0) // check the condition
{
System.out.println("Counter is divisible by ten: " + counter); // display
}
else // check the condition
{
System.out.println("Counter is not divisible by ten: " +counter); // display the //value
}
counter++; // increment the value of counter
Explanation:
Following are the description of code
- In the given question we have to check the condition that the given number is divisible by 10 or not .
- In the if block if the number is divisible by 10 then it print the value of number and increment the value of counter .
- In the else block if the number is not divisible by 10 then it print the value of number and increment the value of counter .
- It means the value of counter is increases in the if block as well as in the else block .So we have to remove the counter statement from there and place outside the if and else block .
A childish term for someone who copies others
The answer is spreadsheet. I just did this lesson and I got all of the answers right so I know it's correct.
Answer:
People prefer composite faces.
Explanation:
If we take some face's picture, and we make it digital, we could make a composite or averaged face, and when we compare composite faces with originals pictures, people prefer the composite faces because there was symmetry in those faces.
For example:
There was a research where a digitalized student faces men and women, researchers make a composite face for every original, people prefer composite face against the original face.
Answer:
public class num7 {
public static void main(String[] args) {
int n =1;
while(n<200){
if(n%5==0 && n%7==0){
System.out.print(n);
System.out.print(",");
}
n++;
}
}
}
Explanation:
- In Java programming Language
- Create and initialize an int variable (n=1)
- Create a while loop with the condition while (n<200)
- Within the while loop use the modulo operator % to check for divisibility by 5 and 7
- Print the numbers divisible by 5 and 7