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
TEA [102]
2 years ago
13

Write an algorithm to print the odd number from 100 to 1​

Computers and Technology
1 answer:
stiks02 [169]2 years ago
3 0

Answer:

In python:

for x in range(0,100):

   if x % 2 == 1:

       print(x)

You might be interested in
A _________, such as apple.com and whitehouse.gov, uniquely identifies a site and a brand on the web.
Serga [27]

A <u>domain name </u>such as apple.com and whitehouse.gov, uniquely identifies a site and a brand on the web.

What is Domain name?

This is known to be a kind of Application programming interface. The  domain name is said to be a series or a string of letters that tells more about a realm of administrative autonomy.

It  tells about authority as well as control that is found  within the Internet. Domain names are said to be used in a lot of networking contexts and therefore, A <u>domain name </u>such as apple.com and whitehouse.gov, uniquely identifies a site and a brand on the web.

Learn more about Domain name from

brainly.com/question/13153286
#SPJ1

5 0
2 years ago
How do you clear space in your iCloud?
Oxana [17]
Reset your settings and all storage by using your computer or device filter
6 0
3 years ago
Write a while loop that prints userNum divided by 4 (integer division) until reaching 2. Follow each number by a space. Example
Slav-nsk [51]

Answer / Explanation:

#include <iostream>  

using namespace std;

int main()  

{    

 int userNum = 0;  

  userNum = 20;    

  cout << userNum << " ";

  while (userNum > 1)    

  {

     userNum = userNum/2;

     cout << userNum << " ";    

  }    

  cout << endl;  

  return 0;  

}

However, we should note that the above codes divides properly but when it gets to 0, it will always give output as 0 instead of terminating the program.

Hence to make it terminate, we include:

while (userNum > 1)    

{

  cout << userNum << " ";    

  userNum = userNum/2;

}    

The above code alternatively should be replaced with int userNum = 0;  .

Also, for the sake of industry best standard and the general principle, we can say:

The general principle is:

while ( <conditional> )

{

  // Use the data

  // Change the data as the last operation in the loop.

}

A for loop provides natural placeholders for these.

for ( <initialize data>; <conditional>; <update data for next iteration> )

{

  // Use the data

}  

If you were to switch to using a for loop, which I recommend, your code would be:

for ( userNum = 20; userNum > 0; userNum /= 2 )

{

  cout << userNum << " ";

4 0
3 years ago
A _______________ hypervisor improves the performance of virtualization by removing the underlying operating system.
elena-14-01-66 [18.8K]
Type 1 hypervisor. also referred to as a
Bare-metal hypervisor
6 0
3 years ago
An organized file title helps save time locating files, communicates professionalism, and lets us know the file is most likely N
Shkiper50 [21]

An organized file title helps save time locating files, communicates professionalism, and lets us know the file is most likely not a virus: True.

A file can be defined as a computer document or resource which avails an end user the ability to store (record) data as a single unit on the storage device of a computer system.

Generally, all files are identified and organized based on the following criteria:

  • Name (Title).
  • Format (Type).
  • Size.
  • Date.
  • Status.
  • Owner.
  • Permission.

Based on the aforementioned criteria, an organized file title would help to save time locating files, communicates professionalism, and lets us know the file is most likely not a virus because it must have been scanned with an antivirus utility.

Read more: brainly.com/question/23728214

6 0
3 years ago
Other questions:
  • The layout button is located in the ____ group on the home tab?
    14·1 answer
  • When an object is selected, it is surrounded by ________, which allow you to change the size of the object.?
    5·1 answer
  • Write an expression that evaluates to true if and only if the value of the integer variable workedOvertime is true.
    7·1 answer
  • Jose wants to be sure maintains a high credit score as he is planning yo buy a new car soon what should he do to ensure his scor
    13·2 answers
  • Which type of hypervisor does not run on an underlying operating system?
    13·1 answer
  • What is the unit used to describe the intensity of sound?
    5·1 answer
  • 3.
    5·1 answer
  • What are the four different orchestral instrument families?
    6·2 answers
  • Complete each sentence
    10·1 answer
  • Jade has to create a workbook for storing information of students participating in the annual state-level sports competition. Th
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!