1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sphinxa [80]
3 years ago
5

Create a loop that will output all the numbers less than 200 that are evenly divisible (meaning remainder is zero) by both 5 and

7. 35, 70, 105, 140, 175
Computers and Technology
1 answer:
Readme [11.4K]3 years ago
4 0

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
You might be interested in
Jim is expecting a very busy weekend at his store, so he sent the following e-mail to his employees: ALL EMPLOYEES MUST WORK THI
Salsk061 [2.6K]

Answer:

The caps and bold letters makes it seem like his boss is yelling at him.

Explanation:

5 0
4 years ago
(Correct Answer Recieves Brainliest)
astraxan [27]

Answer:

D

Explanation:

3 0
3 years ago
Read 2 more answers
What is GIGO ?<br>plz answer me​
DanielleElmas [232]

Answer:

Garbage in, garbage out

Explanation:

In computer science, garbage in, garbage out is the concept that flawed, or nonsense input data produces nonsense output or garbage

4 0
3 years ago
What is the name of the option in most presentation applications with which you can modify slide elements?
olga55 [171]

Answer:

Answer to both the question is View Master.

Explanation:

Slide Master View is an element in PowerPoint that enables one to bring modification in slides and slide layouts in the presentation applications. From this option, one is able to edit the slide master. By modifying the slide master, every slide in the presentation is affected. Using this feature, one can also modify single slide layouts.

To select Slide Master command, go to View then select the Slide Master Command, and the Slide Master view will appear on the screen.

Therefore, View Master is the correct answer.

3 0
3 years ago
Read 2 more answers
Which activity represents a violation of the licensing agreement
kvasek [131]
Could you give the answers it gives you? It should be along the lines of purposeful destruction of equipment.
5 0
4 years ago
Read 2 more answers
Other questions:
  • The ____________ mechanism consists of a lever arm attached to the mousetrap spring.
    15·1 answer
  • Done through Block Py/ Python
    11·1 answer
  • Kiera is building a new computer and wants to make sure she has an adequate power supply for all the new equipment she is purcha
    15·2 answers
  • What other options are there besides jail for 16 year old that commit a crime?
    8·2 answers
  • A _______ template is used to maintain consistency in terms of margins and page numbers .
    6·1 answer
  • Give 4 examples of mnemonic codes, and what do they do?
    15·1 answer
  • How many constructors are there in the following class declaration?class CashRegister { public: CashRegister(); CashRegister(int
    8·1 answer
  • An analogue sensor has a bandwidth which extends from very low frequencies up to a maximum of 14.5 kHz. Using the Sampling Theor
    9·2 answers
  • Explain the different type of shift register counter ​
    14·1 answer
  • Convert alzebric expression into basic expression<br> (1/2)bh<br> PLEASE GIVE ANSWER FAST
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!