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

Priyah’s weekly earnings were proportional to the number of hours she worked. The table shows the number of hours Priyah worked and the amount she earned. How
How many triangles can be constructed with sides measuring 6 cm, 2 cm, and 7 cm? one more than one none
What is 5/8 closets to
HELLLLLLLLLLLLLP MEEEEEEEEEEEEE PLEASEEEE!!!!
You are a flyer for the cheerleading squad. Your base partners miss catching you on a basket toss and you land on the tip of your shoulder. You feel and hear a
Which phrase is a kenning ?
ASAP -WILL MARK BRIANIST
Which expression is equivalent to 3x + 2.5(4x + 2)? A. 13x + 2 B. 13x + 5 C. 22x + 2 D. 22x + 5
Some hep I’m taking a test final
Who does Hiram find on the bridge at night? * What does R.C. Do to Emmett by the river? * After the incident with R.C. At the river, Hiram's thoughts about his