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
What can visible light and ultraviolet light do together
jonny [76]

Explanation:

the question does not have an answer probably what they have in common

5 0
3 years ago
_____ is two or more connected computers.
aliya0001 [1]
A Network

A Network is a connection of computers. Imagine lots of people joined together. You might call that a network.
5 0
3 years ago
***PLEASE HELP*** (25 POINTS) Graded Assignment
Leona [35]
When does this have to be done?
8 0
4 years ago
8.10 LAB: Convert to binary - functions Write a program that takes in a positive integer as input, and outputs a string of 1's a
Korvikt [17]

Answer:

// This program is written in C++ programming language

// Comments are used for explanatory purpose

// Program starts here

#include <iostream>

#include <string>

using namespace std;

// Declare variables

int inputvar;

// Declare output variable as array

int outputvar[32];

// Set a counter for binary array

int i = 0;

while (inputvar > 0) {

// Divide inputvar by 2 and store remainder in outputvar

outputvar[i] = n % 2;

inputvar/=2;

i++; // increment i by 1

}

// End of division

// Prin resulting array in reverse order

for (int j = i - 1; j >= 0; j--) {

cout << outputvar[j];

}

return 0;

}

// End of Program

3 0
4 years ago
Crees que el uso del internet ha mejorado nuestra vida o somos esclavos de ella​
Ilya [14]

Answer:

Yo creo que él internet a mejorado nuestra vida pero también nos a embobado porque lo que hacemos mas es buscar cosas que no aportan a tu vida y no cosas que nos ayuden en la vida.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Why would you use a database system instead of traditional file system
    6·1 answer
  • Define the term e-learning​
    5·2 answers
  • By observing human behavior,_______are able to understand the cause and effect relationship between the supply of things we want
    13·2 answers
  • Error: 404 Not Found <br>The resource that you requested does not exist on this server.
    14·2 answers
  • ________ is the standard communications protocol used on most client/server networks.
    9·1 answer
  • 1) Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a s
    11·1 answer
  • Finding values in an array
    5·1 answer
  • What would the following program print to the screen when run?
    7·1 answer
  • What are the advantages of knowing demographics over psychographics and vice versa?
    12·1 answer
  • PLZ HELP ME!!
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!