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
JulsSmile [24]
3 years ago
14

3.21 LAB: Smallest number

Computers and Technology
1 answer:
Harlamova29_29 [7]3 years ago
7 0

Answer:

#include <iostream>

using namespace std;

int main(){

   int a, b, c;

   cout<<"Enter three integers: ";

   cin>>a>>b>>c;

   if(a<=b && a<=c){

       cout<<"Smallest: "<<a;    }

   else if(b<=a && b<=c){

       cout<<"Smallest: "<<b;    }

   else{

       cout<<"Smallest: "<<c;    }

   return 0;

}

Explanation:

This line declares three integer variables a, b and c    

int a, b, c;

This line prompts the user for three integer inputs

   cout<<"Enter three integers: ";

This line gets the inputs

   cin>>a>>b>>c;

This checks if the first is the smallest

   if(a<=b && a<=c){

If yes, it prints the first as the smallest

       cout<<"Smallest: "<<a;    }

This checks if the second is the smallest

   else if(b<=a && b<=c){

If yes, it prints the second as the smallest

       cout<<"Smallest: "<<b;    }

If the above conditions are not true, then the third number is printed as the smallest

<em>    else{</em>

<em>        cout<<"Smallest: "<<c;</em>

<em>    }</em>

<em />

You might be interested in
Can I control my digital footprint?
lyudmila [28]

Answer:

yes you can

Explanation:

6 0
3 years ago
Read 2 more answers
You have been asked to investigate a web server for possible intrusion. You identify a script with the following code. What lang
nignag [31]

The code below is written in JavaScript and does not seem malicious.

<h3>What is a Malicious Code?</h3>

A Malicious code is one that is not designed for any productive end but to cause disruptions in the computer with the objective of

  • harming the workstation; or
  • destroying the data stored therein.

There are numerous classifications of malicious codes and they can be identified and removed by an application called an Anti-Virus or malicious app remover.

Learn more about JavaScript at:
brainly.com/question/16698901

8 0
3 years ago
A direct link between a single ____ preserves the fine details in the cones message
son4ous [18]
A single bipolar cell....
 your answer !!

6 0
3 years ago
PLEASE HELP WHATS THE ANSWER
Mkey [24]

Answer:

C

Explanation:

A ends the whole html stuff

B starts a link

D is just the file extension for html files

4 0
3 years ago
Read 2 more answers
How to find the average range of cells A1:A10
Ad libitum [116K]
Go to a blank cell and type

         =AVERAGE(A1:A10)      then  <ENTER>

As if by magic, the average of those cells
will appear where you typed the formula.
5 0
3 years ago
Other questions:
  • What is the purpose of news services
    13·1 answer
  • SP 800-14, Generally Accepted Principles and Practices for Securing Information Technology Systems, provides best practices and
    12·1 answer
  • Information security is defined as practice of preventing unauthorized access, use, disclosure, disruption, modification, or ___
    6·1 answer
  • What is the decrypted binary
    9·1 answer
  • Please tell fast plzzzzzzzz​
    11·2 answers
  • Which TWO objects are likely to have SSD chips in them?
    5·2 answers
  • Identify the correct answer in each item. Write your answer on the blank provided before
    13·1 answer
  • Part of the operating system core is responsible for controlling security, managing the file system, and providing a platform fo
    6·1 answer
  • How to install specific version of create-react-app so.
    10·1 answer
  • Which longstanding restaurant chain closed its last location in lake george, new york?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!