1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nika2105 [10]
4 years ago
14

Write a loop to print 11 to 35 inclusive (this means it should include both the 11 and 35), 5 per line.

Computers and Technology
2 answers:
Nata [24]4 years ago
6 0

i = 11

while i < 36:

   print(i)

   i = i + 1

Hope it helps.

julsineya [31]4 years ago
5 0

The idea is the following (the specific code will vary depending on the specific language):

  • declare a global counter, i = 11, and an inner counter, c = 0.
  • make a for loop where i runts from 11 to 35 (inclusive)
  • for each iteration, print i and increase c by 1. If c=5, print a return carriage (\n) and reset count to 0.

For example, in Java you'd have

public class PrintNumbers{

    public static void main(String []args){

       int i;

       int c = 0;

       for (i=11; i<=35; i++){

           System.out.print(i + " ");

           c++;

           if(c==5){System.out.print("\n"); c=0;}

       }

    }

}

You might be interested in
Hadley made a plan that after downloading the Eclipse IDE, she would disable her security program, extract and install Eclipse,
photoshop1234 [79]

Answer:

Disable her security program and update her Java SDK before downloading Eclipse

Explanation:

8 0
3 years ago
Match the job roles with their appropriate qualifications
UNO [17]
Knowledge...- software QA engineer
Master’s...- business analyst
course...- network and computer admin
training...- multimedia artist
3 0
4 years ago
Which of the following need NOT be completed separately if a worksheet is prepared?
Anika [276]
C because you already have you sheet prepared
3 0
4 years ago
A(n) ____________ for a computer program is a set of steps that explains how to begin with known information specified in a prob
Viefleur [7K]

Answer:

​algorithm

Explanation:

A(n) ​algorithm for a computer program is a set of steps that explains how to begin with known information specified in a problem statement and how to manipulate that information to arrive at a solution.​

4 0
3 years ago
Types of libraries in operating system​
katrin2010 [14]

Answer:

Academic, Public, National & Special Library

Explanation:

8 0
3 years ago
Other questions:
  • What controls the duration of light that is allowed on the sensors
    15·1 answer
  • Microsoft acknowledged that if you type a res:// url (a microsoft-devised type of url) which is longer than ____ characters in i
    9·1 answer
  • Which line of code will print I like to code on the screen? print("I like to code") print(I like to code) print("I LIKE TO CODE"
    5·2 answers
  • What is wrong with the following code? How should it be fixed?
    12·1 answer
  • Which kind of file would be hurt most by lossy compression algorithm
    8·2 answers
  • Body paragraphs in a report have a first-line indent of _____ inch. *
    9·1 answer
  • Sketch f(x) = 5x2 - 20 labelling any intercepts.​
    13·1 answer
  • write an algorithm and draw a flowchart to calculate the sum of of the first 10 natural numbers starting from 1​
    13·1 answer
  • 25 points select 3 options!!!!!!!!!!!!!!!!!!!!!!!!!
    8·1 answer
  • someone please do this for and send a screeshot or picture please its really important for my examsss :D​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!