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
Answer:
The BASIC program is as follows:
SUM = 0
FOR I = 1 TO 20
INPUT SCORES
SUM = SUM + SCORES
NEXT I
AVERAGE = SUM/20
PRINT AVERAGE
Explanation:
This initializes sum to 0
SUM = 0
This iterates through 20
FOR I = 1 TO 20
This reads each score
INPUT SCORES
This calculates the total scores
SUM = SUM + SCORES
NEXT I
This calculates the average
AVERAGE = SUM/20
This prints the calculated average
PRINT AVERAGE
An example of selection structure is when a group of people wanted to know the exact number of days through the use of a data set that has the daily high temperature which ranges from above 80 degrees, and as such, a programmer can use the if-end statement.
<h3>What is an if statement?</h3>
An IF statement is known to be a kind of statement that is executed due to the happening of a specific condition.
Note that IF statements must start with IF and end with the END.
Therefore, An example of selection structure is when a group of people wanted to know the exact number of days through the use of a data set that has the daily high temperature which ranges from above 80 degrees, and as such, a programmer can use the if-end statement.
Learn more about if-end statement from
brainly.com/question/18736215
#SPJ1
If I remember correctly C is the correct answer