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

Write a for loop that prints the odd integers 11 through 121 inclusive, 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=11; i<=121; i=i+2){
   System.out.print(i); System.out.print(" "); 
 } 
}}

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

Otras preguntas

From all religions which one is known to be the best one?
What kind of graphs can you use to understand how people came
could really use some help on this!!
Which of the following risk factors should be considered when choosing a form of investment for your money? Select all that apply. A risk B rate of Return C ter
I need help with it one plz
Which principle of design is the artist of this work relying on to create a visually appealing painting? O unity O variety O pattern o emphasis
Why did odysseus have to rescue his men from the Lotus-eaters? ?
An oil-drilling rig has dug a hole to a depth of -60 ft. after one full day and night of continuous use. The rate of the rig stayed constant over that time. Par
Classify the angle pairs
The point-slope form of the equation of a line that passes through points (8. 4) and (0, 2) is y-4 = (x-8). What is the slope-intercept form of the equation fo