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

Julius Caesar, hero or tyrant?! And why????
What is the scientific name of 'touch me not' plant? can you give an explanation about its mechanism?
Which Kelvin temperature is equal to 200.°C?
what is the possessive case?
Homophones ~~~ a) a female sheep / an evergreen tree b) sandy shore / kind of tree c) guided / a metal d) opens lock / harbour e) flat land / joiner's tool f)
The name of each contestant is written on a separate card, the cards are placed in a bag, and three names are picked from the bag. Identify which type of sampli
Find the domain of each rational expression. f(x)=5x-7/4
Homophones ~~~ a) a female sheep / an evergreen tree b) sandy shore / kind of tree c) guided / a metal d) opens lock / harbour e) flat land / joiner's tool f)
What is the passive voice of "I went to a movie"
can you tell me what Is Pleonasm?