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

blank can be made in the field or in the laboratory
Explain why action-reaction forces do not cancel each other out, resulting in zero net force
Both DNA and RNA contain a five-carbon sugar. This sugar is
what kind of military force did the confederation government have?
round to the nearest whole number 99.59
Both DNA and RNA contain a five-carbon sugar. This sugar is
three reasons the united states was able to assert itself on world stage after WW2
analyze the importance of compromise in government by examining and explaining The Great Compromise and The Three Fifths Compromise. Also, give your opinion whe
Margot wants to use partial products to find 22x17. Write the number in the boxes to show 22x17
Margots dad has 7 striped ties and 21 solid ties. What is the ratio of striped ties to solid ties.