Kkamarletie Kkamarletie
  • 26-03-2017
  • Computers and Technology
contestada

Write a for loop that prints the odd integers 11 through 121 inclusive, separated by spaces. (in java)

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

Hello can someone pls help with this Ty!​
How did we justify sending troops to Europe to fight for the freedom of others but violating the rights and liberties of our own citizens?
The success of the United States requires the efforts of only a few strong and knowledgeable citizens
so how would I play 6/8 with staccatos ​I give brainiest
Escribe otra vez las oraciones utilizando el adjetivo posesivo correcto. (Rewrite the sentences using the correct possessive adjective.)
“what students really need to hear” essay
is oxigen a Molecule or a compound
What are the social classes and diversity of the Jamestown region?
Which subject pronoun replaces "Sophie, Lise, Cristelle, Isabelle et Rober"'? ONLY PEOPLE WHO KNOW FRENCH!!!!
Figure B is the image of Figure A when reflected across line 1. Are Figure A and Figure B congruent? Explain your reasoning. Con Figure