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

whats the most accurate estimation of 65+77
which of the following represents the most accurate estimation of 38+23
why did people immigrate to the United States in the late 1800s?
whats the most accurate estimation of 65+77
why did people immigrate to the United States in the late 1800s?
which of the following represents the most accurate estimation of 38+23
''Life in a city is more rewarding than life outside a city."List two or three arguments in favor of this opinion and two or three arguments opposing this opini
please explain how to solve this  On Monday,it took Helen 3 hours to do  a page of science homework exercises.The next day she did the same number of exercises
why did people immigrate to the United States in the late 1800s?
which of the following represents the most accurate estimation of 38+23