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

I have no misgivings about, or lack of confidence in the cause in which I am engaged, and my courage does not halt or falter. I know how strongly American Civil
The recognized standard means of inquiry used by research scientists is the _____ method. a. theoretic b. scientific c. controlled d. experimental
In "A Cub Pilot," why does the author say that the Mississippi is "fickle"? a. The river is constantly changing. b. The relationship among pilots is sometimes d
4a+6(a+8) Simplify the expression
Thomas Jefferson wrote __________. a. the Virginia Declaration of Rights b. Common Sense c. the Constitution d. the Declaration of Independence
an ant can travel approximately 30 meters per minute . how many meters could an ant move in 45 minutes
use partial quotient 28 divided by 514
What is the answer to 3/8 + -7/8
Five times the sum of three and some number
What conditions allowed the Spartans to create a professional army?