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
A(n) ________ is usually a live broadcast of audio or video content. Select one: A. instant message B. webcast C. podcast D. wik
navik [9.2K]

Answer: B webcast

Explanation:

A webcast is a technology that allows the live broadcast of an audio or video event on the Internet. It is also known as Web lecture, virtual meeting, etc. The major advantage is that it gives room for an event to have a larger reach. Webcast participation can be through PC, smart phones, tablets and other devices with quality Internet access.

7 0
4 years ago
Read 2 more answers
Sally notices that she has the same set of 10 blocks in her code in multiple places. She decides to create a new block (procedur
SashulF [63]

Answer: it is C. 41

Explanation: i no it

6 0
3 years ago
What is the importance of the query object why do we need such an object?
Firlakuza [10]

Answer:

Business Central query objects enable you to retrieve records from one or more tables and then combine the data into rows and columns in a single dataset. Query objects can also perform calculations on data, such finding the sum or average of all values in a column of the dataset.

6 0
4 years ago
What's the maximum number of ad extensions that can show for a particular query or device at any given time?
krok68 [10]

Answer:

Four (4) extensions.

Explanation:

Go-ogle Ads can be defined as a strategic advertising platform designed and developed by Go-ogle for use over the internet. It can be used to display product listings, services and campaigns to any web user over the internet.

Basically, for those who are relatively new to the Go-ogle Ads, the company provides a feature known as the dynamic search ads which helps various users to easily run a successful ad campaign. Through the use of machine learning, a dynamic search ad allows phrases and titles associated with a website to be automatically indexed and presented as a landing page to any user who is searching with the keywords.

The maximum number of ad extensions that can show for a particular query or device at any given time is four (4) extensions. The Go-ogle Ad extension platform is designed to display all the ads simultaneously or co-trigger and as such, the maximum number of ad extensions that are displayed per query or device are four (4).

4 0
3 years ago
I need help with this work
lisabon 2012 [21]

Answer:

B. Balanced depending and the type of questions

5 0
3 years ago
Other questions:
  • Which formula best expresses your monthly ending balance?
    12·1 answer
  • While reviewing some web page code, you notice that the html is written in all lowercase letters. you are not sure which version
    14·1 answer
  • Bonnie gets very nervous before taking tests. What can she do to help her anxiety while she takes her tests?
    15·2 answers
  • Using C#, declare two variables of type string and assign them a value "The "use" of quotations causes difficulties." (without t
    11·1 answer
  • How does the actual amount left to spend differ from the budgeted amount for the remaining three months of the project?
    12·1 answer
  • What does the CYMK tab let you do?
    5·2 answers
  • Who is the father of computer?​
    6·1 answer
  • What was your favorite animals, game, photo, friends,
    7·2 answers
  • Use the round function to modify the program to display at most two digits of precision in the output number.
    14·1 answer
  • a client device on your network is trying to authenticate via radius proxy, but is failing. you check the relevant policy on the
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!