ni2anadGayah ni2anadGayah
  • 27-03-2017
  • Computers and Technology
contestada

Write a for loop that prints in ascending order all the positive multiples of 5 that are less than 175, separated by spaces.

Respuesta :

Аноним Аноним
  • 07-04-2017
The code for the above problem is:
/* package whatever; // don't place package name! */ 

import java.util.*;
import java.lang.*;
import java.io.*; 

/* Name of the class has to be "Main" only if the class is public. */

class Ideone{ public static void main (String[] args) throws java.lang.Exception 
{ 
 for(int i=5; i<175; i=i+5){
   System.out.print(i); System.out.print(" "); 
 } 
}}

I hope this is the answer that you were looking for. 
Answer Link

Otras preguntas

Which theme do lady Macbeth's words to her husband most often express?
Features of plant cells that clearly make them different from animal cells are
Use the distributive property to simplify 27-9x+15y
The climate in the Andes and the pampas is influenced by this phenomenon every few years
Pour toi, quel est un passetemps artistique? (Réponds dans une phrase complète.)
SOLVE THIS PROBLEM IF YOU ARE SMART
Measure of angle 1 = x measure of angle 2 = x-6
What is the name of the scientist who discovered the electron? a.Niels Bohr b.John Dalton c.J.J. Thompson d.Robert Millikan
Read this excerpt from A Room of One's Own by Virginia Woolf: [A]ny woman born with a great gift in the sixteenth century would certainly have gone crazed, shot
What is the answer?