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
pentagon [3]
3 years ago
12

Write a program whose inputs are three integers, and whose output is the smallest of the three values.Ex: If the input is:7153th

e output is:3
Computers and Technology
1 answer:
ra1l [238]3 years ago
7 0

Answer:

The program is written in C++ language and given below in explanation section. All bold faced words are C++ keywords and symbols. Nested         if-else decision branch is used to determine smallest number of all three integers. First of all you have input three integers then the program prints smallest integer of all

Explanation:

#include <iostream>

using namespace std;

int main() {

   int num1,num2,num3;

   cout<<"enter first integers"<<endl;

   cin>>num1;

   cout<<"enter second integers"<<endl;

   cin>>num2;

  cout<<"enter the third integers"<<endl;

   cin>>num3;

   if(num1<num2){

      if(num1<num3){

           cout<<"Smallest integer is "<<num1<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }else {

       

      if(num2<num3){

           cout<<"Smallest integer is "<<num2<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }

  return 0;

}

You might be interested in
When both gears are the same size what will they produce
djverab [1.8K]

They produce a 1:1 ratio.  The input power is equal to the output power.

7 0
4 years ago
Users connecting to a particular SSID are now claiming they cannot see the SSID. What should a technician do first, assuming the
Alexus [3.1K]

Answer:

Move closer to the wireless access point

Explanation:

6 0
4 years ago
Fill in each blank with the correct answer/output.
borishaifa [10]

Answer:

37

Explanation:

Given int[] vals = {7,5,3,9,0,37,93,16,68,6,99};

In programming, the position of each value in the list are known as index. The first value is always assigned index of 0 not 1, the second value is assigned index of 1 and so on. For example;

val[0] = 7 i.e value with index 0

val[1] = 5

val[4] = 0

In order to print out this value

System.out.println(vals[vals[1]+vals[4]]);

Substituting the index value val[1] and val[4] into the argument given

vals[vals[1]+vals[4]]

= vals[5+0]

= vals[5]

= 37 (value at the 5th index)

System.out.println(vals[vals[1]+vals[4]]);

= 37

This means that the system will print out 37 to the console

4 0
4 years ago
should gaming be considered as a sport? Why or why not? (Your opinion) and please have a good aurgumant.
Sidana [21]
It's part not and part it's okay becuase sometimes gaming can help you in sports thats what happen to me it made me a beder player on the soccer team.

But your not really geting you bones exsesize then you get a brain cramp.
8 0
3 years ago
Read 2 more answers
What is a Boolean operator
Alenkasestr [34]
A boolean operator is one of those: and, or, not
true and true gives you true
<span>false and false gives you false
</span><span>false and true gives you false
</span><span>true and false gives you false
</span>true or true gives you true
true or false gives you true
false or true gives you true
false or false gives you false
not true gives you false
not false gives you true
7 0
4 years ago
Read 2 more answers
Other questions:
  • In the simulation, player 2 will always play according to the same strategy. The number of coins player 2 spends is based on wha
    6·1 answer
  • The final step of the DHCP Discovery process is known as...
    8·1 answer
  • PLS HURRY!!<br> Look at the image below!
    7·1 answer
  • Which statement about parallax scrolling is true?
    6·1 answer
  • 18) What is masking in Flash?
    5·1 answer
  • What will be the output of following python code? a,b=3,4 a,b,c=b,a+3,b-1 print(a,b,c)​
    7·1 answer
  • One rule in the Java programming language is that you have to place a semicolon at the end of each statement. What is this rule
    10·2 answers
  • Which key doesn't relate to keyboard A:return key B :enrollment key C: delete key D:tab key
    9·2 answers
  • Pls answer i will give 20 points
    7·1 answer
  • What type of dns servers field dns queries, send iterative queries to upstream dns servers, or send requests to forwarders and t
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!